[wxPython] key shortcut and toolbar

I would like to associate shortcut key to button of toolbar.

IMO, toolbar buttons are basically graphical/mouse-driven shortcuts to menu options. All toolbar buttons should have a corresponding menu option. Use the menu option keyboard shortcuts/accelerators instead.

For example, if you have a "Save" button on your toolbar, it should be the graphical equivalent of selecting the "File | Save" menu option. You then map "Ctrl-S" (or whatever) as your keyboard shortcut for "File | Save".

Hope this helps...

Garry

ยทยทยท

-------------------------------------
Garry Simmons
simmonsg@symbol.com