Tkinter and frame resizing question

Martin Franklin martin.franklin at westgeo.com
Tue Sep 25 03:34:49 EDT 2001


Laura Creighton wrote:

> I have a Tkinter screen that looks like this:
> (sorry for the cheesy graphics; hope you have a
> fixed width font!)
> 
> -----------------------
> |                     |
> |   big frame1        |
> |                     |
> |                     |
> -----------------------
> |                     |
> |   big frame2        |
> |                     |
> |                     |
> -----------------------
> |  tiny frame  (with  |
> |many control buttons)|
> -----------------------
> 
> When I use grid_remove() to remove a big frame, the window is
> redrawn from the top down, and so my tiny frame moves upwards.
> I don't want this.  I'd prefer to anchor the tiny frame to the
> bottom of the screen and then have the top of the window rise
> or fall depending on how many big frames I grid.  Does anybody
> know how to do this?
> 
> Laura Creighton
> 
> 

Laura,

Are you resticted to using the grid geometry manager? If not try 
.pack(side='bottom') (and then pack_forget())

If you must use the grid manager you could try playing with the sticky bits
(frame.grid(sticky='s')

Martin.










More information about the Python-list mailing list