I created a menu using:
fileMenu = wx.Menu()
fileMenu.Append(ID_NEW, \"&New\\tCtrl+N\", \"Creates a new file\")
I can access New by clickin
The &
characters in menu titles indicate an accelerator that you can press while the menu is open to quickly access the item. This only works when the menu is open and focused. You'll see the underscored character in the item title as a mnemonic. Same applies to the top level menu entry as well, such as 'File' or 'Edit': by standard WIMP convention you can open said menu using Alt-F (if F is the accelerator for File) and then just as quickly press 'C' if there is an accelerator for C in that menu. Quick and very little known these days.
The \t
means a tab in traditional context and in menu items it will make a global shortcut in your frame that you can press without the menu being active.
The shortcut letter following &
will be accessible only from the menu.
The \tCtrl+N
is available from the entire app, and the short-cut is displayed next to the menu item.