cosmetic Tkinter question
harold fellermann
harold.fellermann at upf.edu
Mon Jan 3 08:39:58 EST 2005
On 26.12.2004, at 16:38, Sean McIlroy wrote:
> I've got a bunch of Frames, all packed into the root window with
> side=TOP, and in each Frame I've got a Checkbutton packed with
> side=LEFT. I expected the Checkbuttons to be flush with the left edge
> of the window, but they're not, and it looks a little gross. How do I
> get them to align?
if you pack the frames with option fill=X they should be well aligned --
This commands the frame to use all available space in the horizontal
direction:
your_frame.pack(side=TOP,fill=X)
your_button.pack(side=LEFT)
- harold -
--
What is mind? -- Doesn't matter.
What is matter? -- Never mind!
--
More information about the Python-list
mailing list