I’ve simplified it to show what is happening. Whenever radio button 3 is selected programatically (if there is such a word) it clears the first 2 radio buttons - which shouldn’t be affected. This doesn’t happen if it is done with the mouse or keyboard.
Sorry about the multiple versions - this is the easiest so far to see the undesirable behaviour.
This radio button is always selected when it first starts up as well - for no apparent reason.
I've simplified it to show what is happening. Whenever radio button 3 is selected programatically (if there is such a word) it clears the first 2 radio buttons - which shouldn't be affected. This doesn't happen if it is done with the mouse or keyboard.
Sorry about the multiple versions - this is the easiest so far to see the undesirable behaviour.
This radio button is always selected when it first starts up as well - for no apparent reason.
I think you would be better off using wxCheckBox and managing the single select behavior yourself, because allowing no radio buttons to be selected is a platform specific quirk. But regardless of that, to get multiple groups of wxRadiouButtons to work correctly on wxMSW you have to create some non-wxRadioButton control between creating the groups of wxRadioButtons.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Subject: Re: [wxPython-users] Re: re Radiobuttons conundrum
Chris Munchenberg wrote:
I’ve simplified it to show what is happening. Whenever radio button 3 is
selected programatically (if there is such a word) it clears the first 2
radio buttons - which shouldn’t be affected. This doesn’t happen if it
is done with the mouse or keyboard.
Sorry about the multiple versions - this is the easiest so far to see
the undesirable behaviour.
This radio button is always selected when it first starts up as well -
for no apparent reason.
I think you would be better off using wxCheckBox and managing the single
select behavior yourself, because allowing no radio buttons to be
selected is a platform specific quirk. But regardless of that, to get
multiple groups of wxRadiouButtons to work correctly on wxMSW you have
to create some non-wxRadioButton control between creating the groups of
wxRadioButtons.
–
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!