Hold on to your radio variables (an obscure thing, indeed) : Radiobutton : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Radiobutton »

 

Hold on to your radio variables (an obscure thing, indeed)


Hold on to your radio variables (an obscure thing, indeed)
from Tkinter import *      
root = Tk()                   
     
def radio1():                  
    tmp = IntVar()
    for i in range(10)
        rad = Radiobutton(root, text=str(i), value=i, variable=tmp)
        rad.pack(side=LEFT)
    tmp.set(5)    
     
radio1()
root.mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» Radiobutton