- Added support for numpad accelerators; they must be passed as
"Num x", where x may be into a [0-9] range.
- Added support for wx.MenuItem.Break(); if you want a menu break,
now you can pass a "/" on a menu entry label.
- Added the EVT_BEFOREMENU_EVENT, which will be triggered right before
the menu event.
- Those who believe that wx.UPPERCASE_STUFF_IS_UGLY 8^) now can pass
"radio" instead of wx.ITEM_RADIO, "check" instead of wx.ITEM_CHECK,
and "normal" (or "", or even nothing at all) instead of
wx.ITEM_NORMAL.
- The args syntax has been extended. The previous version allowed one
to pass either:
(helpString, wxItemKind)
or ("", wxItemKind)
or (helpString,)
Now its also possible to pass:
helpString
or wxItemKind
or (helpString)
or (wxItemKind)
When you use this new style, Metamenus will check if the thing passed
can be translated as an item kind (either wx.RADIO, "radio", etc.) or
not, and so will try to guess what to do with the thing. Note that if
you want a status bar showing something like "radio", you'll not be
able to use this new style, but ("radio",) will still work for such
purposes, though.
- xaccel, a new kwarg available in MenuBarEx, allows one to bind events
to 'items' that are not actually menu items, rather methods or
functions that are triggered when some key or combination of keys is
pressed.
xaccel is a list of tuples (accel, function), where accel is a string
following the accelerator syntax described in wx.Menu.Append docs and
function is the function/method to be executed when the accelerator
is triggered.
The events will be managed in the same way as MenuBarEx events. IOW,
xaccel accelerators will provide some sort of 'invisible menu items'.
Version 0.02: severe code clean-up; accelerators for submenus now work.