Toogle group Radio Button

from Tkinter import *
root = Tk()
root.title('Radiobutton')
cheese=[('Option 1', 1), ('Option 2', 2), ('Option 3', 3),
('Option 4', 4), ('Option 5', 5), ('Option 6', 6), ('Option 7', 7)]
var = IntVar()
for text, value in cheese:
Radiobutton(root, text=text, value=value, variable=var,
indicatoron=0).pack(anchor=W, fill=X, ipadx=18)
var.set(3)
root.mainloop()
Related examples in the same category