title: How to select only one Radiobutton in tkinter
body: <p>I have two radiobutton in my <code>GUI</code> but i want to able select only one at a time with the code below am able to select both <code>radiobutton</code> . I tried the <code>checkbutton</code> which also i can select both options.</p>
  
  <pre><code>from tkinter import *
  
  
  def content():
      if not option1.get() and not option2.get():
          print("not allowed, select one dude")
      else:
          print("welcome dude")
  
      option1.set(False) 
      option2.set(False)   
  
  
  root = Tk()
  root.geometry("400x400")
  
  option1 = BooleanVar(value=False)
  R1 = Radiobutton(root, text="MALE", value=1, var=option1)
  R1.pack()
  
  option2 = BooleanVar(value=False)
  R2 = Radiobutton(root, text="FEMALE", value=2, var=option2)
  R2.pack()
  
  b = Button(root, text="print", command=content)
  b.pack(side="bottom")
  
  root.mainloop()
  </code></pre>