from Tkinter import * root = Tk() var = IntVar() for i in range(10): rad = Radiobutton(root, text=str(i), value=i, variable=var) rad.pack(side=LEFT)root.mainloop()print var.get()