title: Python, Tkinter, Checkbutton: Is there a way to check on/off value
body: <p>what i am trying to do is setup if statements to check if a checkbuttons value is on or off</p>
  
  <p>what i was thinking was something like this</p>
  
  <pre><code>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 = Checkbutton(root, text='2   ', command=checkbutton_value).pack()
  
  checkbox_3 = Checkbutton(root, text='QUIT', command=quit).pack()
  
  root.mainloop()
  </code></pre>