tkinter pack pady code example
Example 1: tkinter allign
from Tkinter import * # N=North
root = Tk() # W=West E=East
# S = South
example = Label(root, text="Hello World!")
example.grid(row=1, column=1, sticky=W)
Example 2: pack tkinter
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()