Hello, I am learning Tkinter. As a part of the learning process I am building a Notepad clone in order to become familiar with Tkinter widgets. I am pretty close to completing it - I added about 90% functionality to the application - but I face two problems: 1) The text widget has a default fixed size (80x25 chars I believe). If I resize the root window at a greater size, the text widget stays at the initial size. This is an undesirable behavior - I expect/want the text to resize along with the root. Now, I came with something …

Member Avatar
Member Avatar
+0 forum 4

This is the first in (hopefully) a series of posts about vbScript. Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. My wife and I take a lot of pictures. Naturally, we end up sending pictures to friends through email. I find it is unnecessary, and often inconsiderate to send full size images via email. When most of our friends end up viewing these images on a hand-held device, it is pointless to send an image wider than 600 pixels. As such, I have to repeatedly 1. Copy the full size image to a temporary folder …

Member Avatar
+2 forum 0

hi guys. is there a plugin or jquery ui that i missed that would allow a user to resize width or height of image/element and rotate image/element? resize something other than .resizable() . i found [this](http://www.ajaxblender.com/howto-rotate-image-using-javascript-canvas.html) for rotation it uses canvad tag and DXImageTransform.Microsoft.BasicImage. is there any other? TIA!

Member Avatar
Member Avatar
+0 forum 3

Hi, I need to implement list based on dynamic arrays (second task is to implement as double linked list). Both tasks are done, but I have problem with time limit on test platform when values are millionths. I suppose that resizing dynamic array is delaying so much. I have implemented common list methods as push_front(), pop_back() ... For example: void push_front(int x) { size++; int* tab_temp = new int[size]; memcpy(tab_temp + 1, tab, (size - 1) * sizeof(int)); tab_temp[0] = x; delete [] tab; tab = tab_temp; } I thought about change resizing step from 1 to 10, but I …

Member Avatar
Member Avatar
+0 forum 5

I've been trying to resize my jbuttons to the size of my pictures, but the jbuttons keep on occupying the whole frame. The size of the photos are 150x267. import javax.swing.*; import java.awt.event.KeyListener; import java.awt.*; import java.awt.event.KeyEvent; import java.util.Timer; import java.util.TimerTask; public class StartGame extends JFrame implements KeyListener { Timer timer; JPanel startpane, oakpane, choosepane; JButton a,b,c; int enter = 0; public StartGame() { super("Animon"); this.setBounds(100,100,1000,1000); startpane = new JPanel(); oakpane = new JPanel(); choosepane= new JPanel(); //start JLabel pic = new JLabel(new ImageIcon("animon2.png")); pic.setSize(400, 500); startpane.addKeyListener(this); startpane.setFocusable(true); startpane.add(pic); add(startpane); //oakpane addoakpane(); //choosepane this.addKeyListener(this); this.setFocusable(true); this.setVisible(true); } public void keyPressed(KeyEvent …

Member Avatar
Member Avatar
+0 forum 2

Hi, How can I automatically resize the height of an iframe such that it takes the height of an external website without showing the scrollbars. Thanks in advance

Member Avatar
Member Avatar
+0 forum 4

Hello Community, I was wondering if there is a way to get only the visible section of the image from picturebox1 and place it in picturebox2. So what I have is picturebox1 set to a certain size, and the image size mode is set to center. Picturebox2 is also set to a certain size but the size mode is set to sketch. In the example I've attached the dash line represents the border of picturebox1. So what is on the inside is what I want moved to the second picturebox. Note all the images in going in picturebox1, most of …

Member Avatar
Member Avatar
+0 forum 3

Hello Programmers! I am working on a 'comics' page of my website. It is going to have multiple pictures (arranged neatly in a table) for the viewer to see and enjoy. I would like to have the images (by default) have a width of 10% of the browser window's width and a height of 10% of the browser window's height. I would also like for the images to resize when the browser's window's width &/ height made bigger/shorter, so that the images will be still seen. Currently, my website just uploads the pictures: they do not have the correct width …

Member Avatar
Member Avatar
+0 forum 9

Hello programmers! I am a beginner in html using the w3 school website help as a guide. Currently, I am working on an excercise website. The code is as following: <!DOCTYPE html> <html> <title><head> ------- Website </head></title> <body bgcolor= #FFCCFF BACKGROUND="background.gif"> <h1> What This Site Is All About: </h1> <hr SIZE="2" COLOR="BLACK" WIDTH="50%" ALIGN="LEFT"> <p1 align="justify"> This is intended to be a semi-professional website for -------- by displaying <br> his resume for those interested in employing him and by sharing personal stories for the viewer's enjoyment.<br> If you are a member of the <b> NSA</b>, you probably know everything about …

Member Avatar
Member Avatar
+0 forum 14

I have no knowladge of partition managment but I download a software named partition star to help me. Does anyone have any other suggestion for me? I mean , another software

Member Avatar
Member Avatar
-1 forum 1

Using NetBeans 7.3.1 i have created a JFrame. A JLabel fills the bottom of the JFrame . The JLabel displays an ImageIcon. I want the ImageIcon automatically resize itself when JLabel resizes. Generated Code from IDE : jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Number_theory/resources/primes_ulam_spiral.gif"))); // NOI18N jLabel1.setDoubleBuffered(true); jLabel1.setOpaque(true); jLabel1.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentResized(java.awt.event.ComponentEvent evt) { jLabel1ComponentResized(evt); } }); My way to change Icon's dimensions according to label's dimensions. private void jLabel1ComponentResized(java.awt.event.ComponentEvent evt) { int labelwidth = jLabel1.getWidth(); int labelheight = jLabel1.getHeight(); ImageIcon Icon = new javax.swing.ImageIcon(getClass().getResource("/Number_theory/resources/primes_ulam_spiral.gif")); Image img = Icon.getImage(); jLabel1.setIcon( new ImageIcon(img.getScaledInstance(labelwidth,labelheight ,Image.SCALE_FAST))); } The result is a slow adjustment to frame …

Member Avatar
Member Avatar
+0 forum 1

Hi there, I'm trying to alter the below iFrame code (which places a music player on my website) so that it resizes according to what screen people view it on. My website is fully responsive, and the div that I'm wanting to put it in changes width depending on what screen size is viewing it. How would I accomplish this with this code? I have tried making the width 100% which works for the width but the height remains the same. Making the height 100% too doesn't work. I need to make the width 100% and the height match whatever …

Member Avatar
Member Avatar
+0 forum 6

Hi all, I'm currently using imagemagick to resize gifs for my site. But the compression doesn't seem really good. I've already tried optimizing it the best way I could, but it isn't satisfactory. Does anyone have recommendations for a better option? Tumblr's gif compression seems to be the best I've seen, was hoping if I could achieve similar results. Thanks!

Member Avatar
Member Avatar
+0 forum 4

I have this code: <html> <head> <title> Psycho Site - About Us </title> <style> /* container */ div.container { width: 1574px; } /* end container */ /* header */ div.header { background-color: #DDA500; } h1.header_h1 { margin-bottom: 0; font-size: 65; } /* end header*/ /* menu */ div.menu { background-color: #FFD700; width: 200px; float: right; } /* end menu */ /* content */ div.content { background-color: orange; height: 500px; width: 1374px; float: left; } /* end content */ </style> </head> <body> <div class="container"> <div class="header"> <center> <h1 class="header_h1"><i> Who are we? </i></h1> </center> </div> <div class="menu"> <a href="appointment.html">Appointment</a><br> <a href="emergancy.html">Need …

Member Avatar
Member Avatar
+0 forum 3

I am trying to automatically resize the iframe to fit the content. Works great in chrome, firefox and opera. Fails in Internet Explorer. Ideas? <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Leontinas</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> var framefenster = document.getElementsByTagName("iFrame"); var auto_resize_timer = window.setInterval("autoresize_frames()", 20); function autoresize_frames() { for (var i = 0; i < framefenster.length; ++i) { if(framefenster[i].contentWindow.document.body){ var framefenster_size = framefenster[i].contentWindow.document.body.offsetHeight; if(document.all && !window.opera) { framefenster_size = framefenster[i].contentWindow.document.body.scrollHeight; } framefenster[i].style.height = framefenster_size + 'px'; } } } </script> <link href="cygnacss.css" type="text/css" rel="stylesheet"> </head> <body style="overflow:scroll"> <iframe allowtransparency="true" frameborder="0" height="0" id="iFrame" name="iFrame" scrolling="no" width="208" src="login.php"></iframe> </body> </html> ** …

Member Avatar
Member Avatar
+0 forum 5

Hi all , I have googled for an answer for this question but most of them are so complicated. Can anyone suggest a simple article on this topic or show me step by step how to solve this. I want to upload an image to a folder and show this image as a background for a <div>. I have managed to preview the image without uploading it to the folder (But it wont crop or re-size) what I have done so far : - **"index.php"** <form id="imageform" enctype="multipart/form-data" method="post" action="upload.php"> <input id="fileToUpload" type="file" name="fileToUpload"/> <input type="submit" value="Upload Image" /> </form> …

Member Avatar
Member Avatar
+0 forum 1

I was struggling long for proper image resize function for maintaining image ratio. Finally i end end up with merging and changing all codes and it works ! function resizeImage($sourceFile,$destFile,$width,$height) sourceFile => Full path along with filename destinationFile => Full path along with filename I hope this will help coders..

Member Avatar
Member Avatar
+1 forum 9

Hello friends, I have a background image in body. What i want to achive is that 1)- calculate the visitor screen resolution. 2)- based on that resolution i want to resize my background image. Can anyone help? Looking for quick response. Thanks and regards navi

Member Avatar
Member Avatar
+0 forum 9

Hi have a problem with css my code is this: #menu-wrapper { position:absolute; top:0; height: 34px; width: 100%; background-color: #E95D22; margin: auto; } Normally it looks like this which is what i want http://picturepush.com/public/10127434 But when i resize the browser it looks like this but i want it to keep to the page width: http://picturepush.com/public/10127504 Thanks

Member Avatar
Member Avatar
+0 forum 4

Hi, i am developing a website but got stuck. I got couple of queries , I would appreciate if anyone can help me out. 1. is it possible to re-size image ( e.g on facebook thumbnail picture ) without loosing quality using php code. 2. If not is there third party tool i can use for image resizing on my website

Member Avatar
Member Avatar
+0 forum 3

Hi I tried to resize image with file name ._DYK_RTH134_1000.jpg. I got the following errors Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error. If I am using image with name like DYK_RTH134_1000.jpg then its working fine. Some of my filename have special characters. like . ( ' etc. Could anyone help me to sort out the problem??? Thanks & Regards Renjith

Member Avatar
Member Avatar
+0 forum 2

I have a Winforms application that I want the end-user to be able to select a radio button to determine the browser they will use(ie, firefox, chrome, opera, etc...) to perform a set of predefined queries. The problem is I want to scale the web-browser to be 800x600 no matter which browser they choose. I know how to set ie's window size using a client side vbscript, but I can only do this to ie and I don't want to use a vbscript. I was wondering if anyone knew c# function to do this. Something like public void SetBrowserDimensions(int x, …

Member Avatar
Member Avatar
+0 forum 1

Hello, I currently have a script that Uploads an image, resizes and saves successfully. I am having trubble understanding how I would rename the uploaded image according to the other image names in the directory. For example there are 3 images in the directory (Image1.png, Image2.gif and Image3.jpg) How would I be able to rename the next image that is uploaded to Image4.png or Image4.jpg or Image4.gif (depending on upload extention) automaticly without having to change the name before upload, and so on for later uploads (Image5, 6, 7, etc.)? Here is my code: <?php error_reporting(0); $change=""; $abc=""; define ("MAX_SIZE","999999"); …

Member Avatar
Member Avatar
+1 forum 3

Hello, I'm trying to make a JPanel with JFrame capabilities, such as resizing, and moving, Everything seems to work fine, altough there are minor flickering inside the JPanel, I have numeral repaints and I have a method called update(), which uses absolute position to arrange Containers and Components. Whenever the JPanel is resized, update() is called. This is a 2 part problem. 1. Flickering. 2. Cant get a container from another class to get resized within the JPanel. Is there any way to resolve these problems? [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class sys_windows extends JPanel implements ActionListener, MouseMotionListener, …

Member Avatar
Member Avatar
+0 forum 11

[CODE]//Header file for Array.cpp. #ifndef ARRAY_H #define ARRAY_H template<class Datatype> class Array { private: //Template for use with the Array's data type. //Member Variables. int size; int grow_size; int num_elements; Datatype* m_array; public: //Constructor. Array( int p_size) { m_array = new Datatype[p_size]; size = p_size; } //Destructor. ~Array() { if( m_array!= 0 ) delete[] m_array; m_array= 0; } //Access Operator: Syntax to allow the use of editing. Datatype& operator[] ( int p_index) { return m_array[p_index]; } //Functions. void ArrayFunction( int* p_array) { p_array[0] = 10; } //Print Function: To print out all elemenst in the Array. void printArray() { for(int …

Member Avatar
Member Avatar
+0 forum 2

I'm trying to get my JPanel (JFrame?) to resize itself to fit randomly drawn shapes. I have a shape superclass and right now I'm working with my line subclass. Everything is working fine except I can't figure out how to make the shapes fit the size of the JPanel. Should I limit the size of the shapes or could someone suggest a way to dynamically set the size of the Jpanel based on the maximum size of the shapes? (I'll eventually want to do this with several shape types in the same panel). I'm thinking a for loop grabbing the …

Member Avatar
Member Avatar
+0 forum 3

My methods dont seem to be working for example void Resize doeznt do anything. AM i using it in the wrong way oris the method faulty. [CODE]//Header file for Array.cpp. #ifndef ARRAY_H #define ARRAY_H template<class Datatype> class Array { private: //Template for use with the Array's data type. //Member Variables. int size; int grow_size; int num_elements; public: //Constructor. Array( int p_size) { m_array = new Datatype[p_size]; size = p_size; } //Destructor. ~Array() { if( m_array!= 0 ) delete[] m_array; m_array= 0; } //Access Operator: Syntax to allow the use of editing. Datatype& operator[] ( int p_index) { return m_array[p_index]; } …

Member Avatar
Member Avatar
+0 forum 3

Hello everyone, I am currently working on a website for a literary journal that I work for called The Broome Street Review. Currently, we use Wix for the website, but we would like to move away from that and design ourselves. I have been teaching myself HTML and CSS and I am running into some problems with having the window resize when the browser resizes. If you go to broomestreetreview.com now and look at the Wix page, when you resize your browser everything on the page resizes with it. I know that they are using flash and javascript and that …

Member Avatar
Member Avatar
+0 forum 2

Hello, I've coded an image resizing function. It works very well for most image types but I've found that there seems to be a problem with progressive jpeg. If I resize my image for a thumbnail size, 50 px of width the result is only a small black square. I've tried with other image types again to be sure everything was right and it's still working fine. Did you face that problem? Your help would be greatly appreciated! Thanks in advance :-)

Member Avatar
Member Avatar
+0 forum 10

Hi, we all know how to dock or anchor controls so that they resize themselves accordingly when a form is resized. It works fine till we have rows of controls on left and right size of the form. But what if have three columns (Columns as in visual sense. I'm not talking about any column control containing other controls) of controls? For example a form having a bunch of controls in the left side, a bunch in the middle and a bunch in the right. There may be a few more bunches in the middle. Now while resizing the form, …

Member Avatar
Member Avatar
+0 forum 3

The End.