[Tutor] Frames and the grid manager

Alan Gauld alan.gauld at blueyonder.co.uk
Sat Aug 21 23:25:11 CEST 2004


> If i would like for example to put my two push buttons in a separate
frame,
> put that frame on row 3 column 2 in my master frame,

Just create a Frame (with the top frame as ots master)
and make that the master of the buttons.

Exactly as you do with the top level frame, it literally is
no different to the top level frame of your GUI.

win = Frame(top)
butFrame = Frame(win)
b1 = Button(butFrame)
b1.pack()
b2 = Button(butFrame)
b2.pack()
butFrame.pack()

Ugly but should work.... Now just use grid instead of pack()...

Alan G.



More information about the Tutor mailing list