pack(expand=YES, fill=BOTH) : Pack « Tkinker « Python Tutorial






pack(expand=YES, fill=BOTH)
from Tkinter import *
Label(text='Hello GUI world!').pack(expand=YES, fill=BOTH)
mainloop()








18.23.Pack
18.23.1.Pack control to the topPack control to the top
18.23.2.Pack a framePack a frame
18.23.3.pack(expand=YES, fill=BOTH)pack(expand=YES, fill=BOTH)
18.23.4.Set control's properties through dictionary syntaxSet control's properties through dictionary syntax
18.23.5.Frame Widgets and CenteringFrame Widgets and Centering
18.23.6.Pack control to Top, left and rightPack control to Top, left and right
18.23.7.Add equivalent pack windowAdd equivalent pack window
18.23.8.Add label and resizingAdd label and resizing