pyface.action.i_menu_manager module¶
- class pyface.action.i_menu_manager.IMenuManager(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]¶
Bases:
IActionManager
A menu manager realizes itself in a menu control.
This could be a sub-menu or a context (popup) menu.
- create_menu(parent, controller=None)[source]¶
Creates a menu representation of the manager.
- Parameters
parent (toolkit control) – The toolkit control that owns the menu.
controller (pyface.action.action_controller.ActionController) – An optional ActionController for all items in the menu.