TKInter pack()
from Tkinter import *
root = Tk()
listbox = Listbox(root)
listbox.pack(fill=BOTH, expand=1)
for i in range(20):
listbox.insert(END, str(i))
mainloop()
3.67
6
Label().pack()
Thank you!
6
0
3.83
6
fred.pack() # defaults to side = "top"
fred.pack(side="left")
fred.pack(expand=1)
Thank you!
6
0
Are there any code examples left?
New code examples in category Other