Python, Tkinter, Checkbutton: Is there a way to check on/off value
问题 what i am trying to do is setup if statements to check if a checkbuttons value is on or off what i was thinking was something like this from Tkinter import * def checkbutton_value(): #If statement here #is their something like #if checkbox_1.onvalue == True: # checkbox_2.deselect() #if checkbox_1.varible == checkbox_1.onvalue: # checkbox_2.deselect() print 'Need Help on lines 7-8 or 10-11' root=Tk() checkbox_1 = Checkbutton(root, text='1 ', command=checkbutton_value).pack() checkbox_2 =