fill, expand from tkinter.pack() layout manager

ast nomail at
Tue Nov 4 15:41:47 CET 2014

"ast" <nomail at> a écrit dans le message de news:5458dfc6$0$27505$426a74cc at

> w.pack(side=LEFT, fill = BOTH)
> Why is the label "w" only extended vertically and not horizontally too ?

w.pack(side=TOP, fill = BOTH)

it expand horizontally but not vertically

w.pack(side=LEFT, fill = BOTH, expand = 1) or
w.pack(side=TOP, fill = BOTH, expand = 1)

it expand both horizontally and vertically

More information about the Python-list mailing list