Expanding tkinter widgets to fill the window

jim-on-linux inq1ltd at verizon.net
Fri Apr 20 14:11:26 EDT 2007


On Friday 20 April 2007 13:56, Anton Vredegoor 
wrote:
> KDawg44 wrote:
> > I am writing a GUI front end in Python using
> > Tkinter.  I have developed the GUI in a grid
> > and specified the size of the window.  The
> > widgets are centered into the middle of the
> > window.  I would like them to fill the
> > window.  I tried using the sticky=E+W+N+S
> > option on the widgets themselves and the
> > window itself.
> >
> > How can I get this?
>
> If at all possible post a short,
> self-contained, correct, example demonstrating
> your question.
>
> http://homepage1.nifty.com/algafield/sscce.html
>
> A.

try;
    sticky = NSEW
without plus signs

        headFrame = Frame(win01, bg = 'light 
grey', bd=10)
        headFrame.grid(row = 0, column=0, sticky = 
NSEW)


jim-on-linux
http://www.inqvista.com










More information about the Python-list mailing list