import sys
from Tkinter import *

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

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

root.mainloop()
