Accelerator keys, radio buttons and MSWin

I'm having a problem defining accelerator keys for
radio buttons on MSWindows. I've attached a small
application to illustrate the problem; The accelerator
keys work for all three controls on Linux/GTK, but on
MSWindows the accelerator keys for the radio buttons
don't work. I looked through the archive and couldn't
find any mention of this problem, so I'm guessing I'm
doing something wrong.

On a (minor) related note, the underlined characters
don't appear until the "Alt" key is pressed (again, on
MSWindows only). Anyone know how to get these to show
up by default?

Thanks in advance

testing.py (2.57 KB)

···

__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

Hello Vernon,

I also stuped over this longer time ago.
Actually you don't need the accelerator key for RadioBoxes.
The same applies for example to Checkboxes.

If you clear out:

    table = wx.AcceleratorTable([
        (wx.ACCEL_ALT, ord('B'), ID_BUTTON),
        #(wx.ACCEL_ALT, ord('R'), ID_RADIOBUTTON1),
        #(wx.ACCEL_ALT, ord('A'), ID_RADIOBUTTON2)
        ])

then this works.

Not sure, if this works also on Linuzs/GTK.

···

On Mon, 19 Sep 2005 08:49:46 -0700 (PDT), Vernon Dozier <vercingetorix52@yahoo.com> wrote:

I'm having a problem defining accelerator keys for
radio buttons on MSWindows. I've attached a small
application to illustrate the problem; The accelerator
keys work for all three controls on Linux/GTK, but on
MSWindows the accelerator keys for the radio buttons
don't work. I looked through the archive and couldn't
find any mention of this problem, so I'm guessing I'm
doing something wrong.

On a (minor) related note, the underlined characters
don't appear until the "Alt" key is pressed (again, on
MSWindows only). Anyone know how to get these to show
up by default?

Thanks in advance

--
Franz Steinhaeusler