I have associated wxAccelerators to my application's menu (for example Ctrl-N
to File->New). Unfortunately, when I run my application, although the
shortcut works, it is not displayed in the menu: I only get "New" in my menu
instead of "New Ctrl-N".
Do I have to handle this myself, or is there an easy way to do this?
I am using wxpython-GTK on debian/unstable.
I have associated wxAccelerators to my application's menu (for example Ctrl-N to File->New). Unfortunately, when I run my application, although the shortcut works, it is not displayed in the menu: I only get "New" in my menu instead of "New Ctrl-N".
Do I have to handle this myself, or is there an easy way to do this?
Yep. Use this text in the menu item: "New\tCtrl-N" and it will add it to the menu and also create an accerator item for it. There is no need for you to do a wxAcceleratorTable if all your items are on the menu.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!