import sys
from Tkinter import *

root = Tk()
root.title(sys.argv[0])

Label(root, text="Top!").pack(side=TOP)
iv = IntVar()
iv.set(2)
print iv.get()
Checkbutton(root, variable=iv, text="Bottom!").pack(side=BOTTOM)
tv = StringVar()
tv.set("Left!")
Entry(root, textvariable=tv).pack(side=LEFT)
iv2 = IntVar()
Radiobutton(root, variable=iv2,  value=1, text="Right1").pack(side=RIGHT)
Radiobutton(root, variable=iv2,  value=2, text="Right2").pack(side=RIGHT)
Radiobutton(root, variable=iv2,  value=3, text="Right3").pack(side=RIGHT)
Button(root, text="Exit", command=sys.exit).pack()

root.mainloop()
