Creates a mapping of actions for a frame.
This class creates the ordering of the menubar, and maps actions to
menu items. Note that the order of the menu titles is required here and
can't be added to later.
|
|
__init__(self,
frame,
mode)
Initialize the mapping with the new set of actions. |
|
|
|
|
createActions(self,
mode)
Create the list of actions corresponding to this major mode. |
|
|
|
|
updateMinMax(self,
min,
max)
Update the min and max menu ids |
|
|
|
|
getAction(self,
actioncls)
Return an existing action if already instantiated, or create it |
|
|
|
|
updateMenuActions(self,
menubar)
Populates the frame's menubar with the current actions. |
|
|
|
|
| updateToolbarActions(self,
auimgr) |
|
|
|
|
|
|
|
| updateActions(self,
toolbar=True) |
|
|
|
|
popupActions(self,
parent,
action_classes=[])
Create a popup menu from the list of action classes. |
|
|
|
|
| cleanupPrevious(self,
auimgr) |
|
|
|
|
|
|
|
reconnectEvents(self)
Update event handlers if the menu has been dynamically updated |
|
|
|
|
disconnectEvents(self)
Remove the event handlers for the range of menu ids |
|
|
|
|
connectEvents(self)
Add event handlers for the range of menu ids |
|
|
|
|
OnMenuSelected(self,
evt)
Process a menu selection event |
|
|
|
|
OnUpdateUI(self,
evt)
Update the state of the toolbar items. |
|
|
|
|
OnMenuOpen(self,
evt)
Callback when a menubar menu is about to be opened. |
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|