wx.RadioButton behavior in Windows

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

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?

···

--
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?

Hank Knox wrote:

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.

I think there were also some more recent changes. Please try 2.6.3.2, it does work there for me.

···

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

Same problem in 2.6.3.2. Maybe I'm doing something wrong when I initialise the radiobuttons?

Robin Dunn wrote:

···

Hank Knox wrote:

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.

I think there were also some more recent changes. Please try 2.6.3.2, it does work there for me.

My code is doing something weird. It works fine when I put a radio group

···

on a panel with some other widgets in a very simple layout. I'll explore further Hank Robin Dunn wrote:

Hank Knox wrote:

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.

I think there were also some more recent changes. Please try 2.6.3.2, it does work there for me.

Here is how to trigger the problem:

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:

Hank

Robin Dunn wrote:

temp.py (603 Bytes)

···

Hank Knox wrote:

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.

I think there were also some more recent changes. Please try 2.6.3.2, it does work there for me.

Hank Knox wrote:

Here is how to trigger the problem:

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.

Jeff

···

Robin Dunn robin@alldunn.com wrote:

Hank Knox wrote:

Here is how to trigger the problem:

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!


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


Sneak preview the all-new Yahoo.com. It’s not radically different. Just radically better.