how to select a radio button in python?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peachdot
    New Member
    • Aug 2010
    • 20

    how to select a radio button in python?

    hi,

    i wanted to use radio button in my GUI. The user will choose one of the button to do a task.Should i assign a variable for each button? btw, Im using SharpDevelop .
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    Each Checkbutton will need its own variable. Otherwise, when you click on one button, the other button will turn on or off to match the clicked one. Normally you would use an IntVar, but you could also use StringVar or BooleanVar in combination with setting Checkbutton options "onvalue" and "offvalue">

    Comment

    Working...