Widget resizing

richard_chamberlain richard_chamberlain at ntlworld.com
Tue Jun 20 14:30:11 EDT 2000


Hi Elliot,

It depends on the kind of manager you use, but I'll use pack as an example.

from Tkinter import *
root=Tk()
Frame(root,borderwidth=3,relief=GROOVE).pack(side=LEFT,fill=BOTH,expand=YES)
root.mainloop()

If you look at www.manning.com/grayson you can download two chapters of
Python and Tkinter programming one of which is screen layout. (of course
you'll be much better buying a copy ;)

Richard

Elliot Smith <e.smith at cs.bham.ac.uk> wrote in message
news:394F8774.138B at cs.bham.ac.uk...
> Hello all,
>
> Can anyone tell me how to get Tkinter to resize frames etc. when their
> parents (e.g. a Toplevel instance) are resized?
>
> Thanks,
> Elliot
> --
> Elliot Smith
> School of Computer Science, University of Birmingham
> email: e.smith at cs.bham.ac.uk
> homepage: http://www.cs.bham.ac.uk/~ezs/





More information about the Python-list mailing list