Dick Moores wrote: > At 08:59 AM 11/26/2006, Michael Lange wrote: >> On Sat, 25 Nov 2006 17:23:39 -0800 >> Dick Moores <[EMAIL PROTECTED]> wrote: >> >>> I've done a lot of fiddling around with setting "side=left", and >>> trying to put all the buttons inside a second Frame inside the first >>> one, but I can't get the layout I want, which is the Label on top of >>> the Entry, then a row of the first 3 buttons (which respectively >>> trigger 3 different computations on the integer the user enters). >>> Then below that, the Exit button, with the Text widget at the bottom. >>> How to do this? Is it impossible with the pack() method? >>> >> It is certainly not impossible, as long as you do not mind creating >> a bunch of extra Frames, however to me this really sound like a >> job for grid() . >> You could simply use grid(row=<xx> , column=0, columnspan=2) >> for the widgets that should use the whole window's width and grid >> the 3 buttons into columns 0, 1 and 2 . > > Thanks. I'll give grid() a try.
It's pretty common to use nested Frames (or the equivalent in other GUI toolkits) to get the layout you want. If you can't do what you need with a single grid layout don't be shy about nesting layouts. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor