[wxPython-users] Question on radio buttons

Robin Dunn robin at alldunn.com
Tue Jul 4 19:23:58 PDT 2006


Lorenzo Allegrucci wrote:
> Hi, I would like to build a set of radio buttons where no one
> is selected at the beginning, but if I create such radio button
> list as:
> 
> rb1 = wx.RadioButton(self, "button1", style=wx.RB_GROUP)
> rb2 = wx.RadioButton(self, "button2")
> rb3 = wx.RadioButton(self, "button3")
> etc..
> 
> rb1 is always selected by default and rb1.SetValue(False) doesn't
> change its state.
> So, is there a way to have all radio buttons not selected by default?

I don't think so.


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





More information about the wxpython-users mailing list