Tkinter w.pack()?

John Posner jjposner at snet.net
Thu Jan 29 00:42:36 EST 2009


The difference between the fill=, expand=, and anchor= options to the pack()
function takes a while to get used to. In brief:

* fill= controls the size of a control itself

* expand= controls the size of the space into which the pack() function
places a control

* anchor= comes into play if the size of the space exceeds the size of the
control

This Google Doc might be helpful:

   http://docs.google.com/Doc?id=dhmzfrmj_0c685rrdb

It shows the effects of progressively adding various fill= and expand=
clause within three statements that create and place Button controls.

-John





E-mail message checked by Spyware Doctor (6.0.0.386)
Database version: 5.11640
http://www.pctools.com/en/spyware-doctor-antivirus/



More information about the Python-list mailing list