faqts : Computers : Programming : Languages : Python : Tkinter

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 22 people (68%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How do I get Tkinter to resize frames etc. when their parents (e.g. a Toplevel instance) are resized?

Jun 22nd, 2000 04:53
unknown unknown, richard_chamberlain, John Grayson


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 ;)


You'll also find over 20,000 lines of example code at the same site...