From
http://wiki.wxwidgets.org/Beech:Using_controls#Adding_a_Menu_Bar
we have
"Note how the ampersand ("&") is used in strings like "E&xit" and
"&File". This indicates which character in a menubar or menu will be
the menu hotkey."
# Attach *Menu() instances
for key in ['file', 'view', 'perspective', 'help']:
cap_key = key.capitalize()
+ hot_key = '&' + cap_key
_class = globals()['%sMenu' % cap_key]
kwargs = {}
if key == 'view':
kwargs['panels'] = panels
self._c[key] = _class(parent=self, callbacks=callbacks, **kwargs)
- self.Append(self._c[key], cap_key)
+ self.Append(self._c[key], hot_key)