I find the wx.lib.buttons.GenBitmapTextButton does not support
accelerator such as "&Save" which can work in the wx.Button. Howto
make an instance of wx.lib.buttons.GenButton support accelerator?
Can Xue wrote:
I find the wx.lib.buttons.GenBitmapTextButton does not support
accelerator such as "&Save" which can work in the wx.Button. Howto
make an instance of wx.lib.buttons.GenButton support accelerator?
The automatic behavior of turning underlined letters in the label into accelerators is a built-in feature of the native button widget on Windows, and not anything that wxWidgets does. But you can simulate something similar yourself. Just add the accelerator to a wx.AcceleratorTable yourself, and then set that accelerator table on the parent window. You'll also need to bind a wx.EVT_MENU event for the ID to the same handler that you bind wx.EVT_BUTTON to.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!