Numeric Keypad Menu Accelerators

What string gets included after the \t in a menu item to create a
numeric keypad accelerator (i.e. NUM 1, NUM ADD, NUM SUBTRACT, etc.)?

Too much drinking, I guess, but I can't find in docs :slight_smile:

Thanks!

If you check the demo for the KeyEvents demo, you will discover the
constants that are generated for each keydown/keyup, etc.

As for actually using them in menu shortcuts, you've got me. I bypass
the menu hotkey system in my apps.

- Josiah

路路路

Jason Terando <jason.terando@verizon.net> wrote:

What string gets included after the \t in a menu item to create a
numeric keypad accelerator (i.e. NUM 1, NUM ADD, NUM SUBTRACT, etc.)?

Too much drinking, I guess, but I can't find in docs :slight_smile:

Jason Terando wrote:

What string gets included after the \t in a menu item to create a
numeric keypad accelerator (i.e. NUM 1, NUM ADD, NUM SUBTRACT, etc.)?

Looks like the code is checking for a 'KP_' prefix, so 'KP_ADD', etc.

路路路

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

Thank you! That is exactly what I needed!

路路路

On Wed, 2006-07-19 at 14:08 -0700, Robin Dunn wrote:

Jason Terando wrote:
> What string gets included after the \t in a menu item to create a
> numeric keypad accelerator (i.e. NUM 1, NUM ADD, NUM SUBTRACT, etc.)?

Looks like the code is checking for a 'KP_' prefix, so 'KP_ADD', etc.