[wxPython-users] A simple radiobutton question

Robin Dunn robin at alldunn.com
Mon Jan 8 14:11:36 PST 2007


Richard Terry wrote:
> Simple for some, not for me.
> 
> I enclose some subroutines where I create three radiobuttons, bind their 
> events, and then read the value when the user changes them.
> 
> All works ok.
> 
> However, I want to set the value within the program when I re-set the screen 
> design and can't figure out how to reset the top radiobutton. There seems to 
> be a setvalue property in the docs.

You just need to call SetValue with a true/false value depending on if 
the radio button should be selected or not.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list