fill, expand from tkinter.pack() layout manager

ast nomail at invalid.com
Tue Nov 4 09:41:47 EST 2014


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

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

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

it expand horizontally but not vertically

with:
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