Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94050
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: tkinter resize question |
| Date | 2015-07-18 01:49 -0400 |
| References | <21c1f9fb-1af0-4c57-aeba-2c7d78b1e707@googlegroups.com> <mailman.666.1437173708.3674.python-list@python.org> <114744ef-1de6-48c7-9024-727051e545a7@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.673.1437198597.3674.python-list@python.org> (permalink) |
On 7/17/2015 9:31 PM, nickgeovanis@gmail.com wrote: > On Friday, July 17, 2015 at 5:55:19 PM UTC-5, Terry Reedy wrote: >> On 7/17/2015 2:53 PM, nickgeovanis@gmail.com wrote: >>> Resizing a tkinter window which contains a frame which contains a >>> button widget, will not change the current size of the window, frame >>> or button as recorded in their height and width attributes (at least >>> not if they are resizable). >> >> Post the code and experiments performed that leads you to believe the above. > > It's really boring but here you are: > > [ngeo@localhost src]$ python3 > Python 3.4.2 (default, Dec 20 2014, 13:53:33) > [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux > Type "help", "copyright", "credits" or "license" for more information. >>>> import tkinter >>>> win=tkinter.Tk() >>>> frame=tkinter.Frame(win, bg="blue", width=200, height=200) >>>> butt1=tkinter.Button(fg="green", bg="black") >>>> frame.grid() >>>> butt1.grid() >>>> butt1["width"] > 0 >>>> butt1["height"] > 0 >>>> win["width"] > 0 >>>> win["height"] > 0 I believe these configuration settings should be interpreted a 'initial size' (if not default) or 'desired size' or possibly min or max size, depending on the grid or pack settings. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
tkinter resize question nickgeovanis@gmail.com - 2015-07-17 11:53 -0700
Re: tkinter resize question nickgeovanis@gmail.com - 2015-07-17 12:17 -0700
Re: tkinter resize question Russell Owen <rowen@uw.edu> - 2015-07-17 12:52 -0700
Re: tkinter resize question Rick Johnson <rantingrickjohnson@gmail.com> - 2015-07-17 13:06 -0700
Re: tkinter resize question nickgeovanis@gmail.com - 2015-07-17 15:42 -0700
Re: tkinter resize question Terry Reedy <tjreedy@udel.edu> - 2015-07-17 21:20 -0400
Re: tkinter resize question Terry Reedy <tjreedy@udel.edu> - 2015-07-17 18:49 -0400
Re: tkinter resize question nickgeovanis@gmail.com - 2015-07-17 18:31 -0700
Re: tkinter resize question Terry Reedy <tjreedy@udel.edu> - 2015-07-18 01:49 -0400
csiph-web