1from Tkinter import *
2
3root = Tk()
4
5listbox = Listbox(root)
6listbox.pack(fill=BOTH, expand=1)
7
8for i in range(20):
9 listbox.insert(END, str(i))
10
11mainloop()
1fred.pack() # defaults to side = "top"
2fred.pack(side="left")
3fred.pack(expand=1)
4