Tkinter w.pack()?

John Posner jjposner at
Thu Jan 29 06:42:36 CET 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

This Google Doc might be helpful:

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


E-mail message checked by Spyware Doctor (
Database version: 5.11640

More information about the Python-list mailing list