I have a question about the behavior of wx.RadioButton group in Windows:
I have a group of five radio buttons on a form with widgets above and below the radiobutton group. The third of them is checked. If I am in a field below the radio buttons and tab backwards into the group, focus goes to the third, checked widget. If I am above the radio group and tab into the group, focus goes to the first radio button in the group and sets that button to checked. I want instead for the tab to go to the checked button, whichever it is. Can this be done?
Thanks
Hank
Hank Knox
Schulich School of Music
McGill University
I have a question about the behavior of wx.RadioButton group in Windows:
I have a group of five radio buttons on a form with widgets above and below the radiobutton group. The third of them is checked. If I am in a field below the radio buttons and tab backwards into the group, focus goes to the third, checked widget. If I am above the radio group and tab into the group, focus goes to the first radio button in the group and sets that button to checked. I want instead for the tab to go to the checked button, whichever it is. Can this be done?
I think that is the way it is supposed to work, and there was some changes done a while back to make sure that it does. Which version are you using?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Thank you for the quick reply.
I am using version 2.6.1. According to the changelog this was fixed in 2.5.3.1.
Hank
Robin Dunn wrote:
···
Hank Knox wrote:
I have a question about the behavior of wx.RadioButton group in Windows:
I have a group of five radio buttons on a form with widgets above and below the radiobutton group. The third of them is checked. If I am in a field below the radio buttons and tab backwards into the group, focus goes to the third, checked widget. If I am above the radio group and tab into the group, focus goes to the first radio button in the group and sets that button to checked. I want instead for the tab to go to the checked button, whichever it is. Can this be done?
I think that is the way it is supposed to work, and there was some changes done a while back to make sure that it does. Which version are you using?
If the radiobutton group is preceded by a wx.lib.masked.TextCtrl(), the group displays the behavior I described in my original message. I have attached a sample code snippet:
If the radiobutton group is preceded by a wx.lib.masked.TextCtrl(), the group displays the behavior I described in my original message. I have attached a sample code snippet:
The masked controls handle navigation themselves (so they can do inter-control navigation if a control has multiple fields within it.) So the code in wx for tabbing into a radio group is not being used in that case. If you want to figure out how to make the masked controls behave better when next to a radio group I'm sure that Will would welcome a patch.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
hello, I was wondering if anyone had a sample of a gizmos treeslistctrl that I could take a look at to learn about these things. I’m having some trouble with the image lists and whatnot. thanks.
If the radiobutton group is preceded by a wx.lib.masked.TextCtrl(), the
group displays the behavior I described in my original message. I have
attached a sample code snippet:
The masked controls handle navigation themselves (so they can do
inter-control navigation if a control has multiple fields within it.) So
the code in wx for tabbing into a radio group is not being used in that
case. If you want to figure out how to make the masked controls behave
better when next to
a radio group I’m sure that Will would welcome a patch.
–
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!