Enter search terms or a module, class or function name.
Bases: enaml.widgets.widget.Widget
A widget used as a menu in a MenuBar.
The title to use for the menu.
Whether this menu should behave as a context menu for its parent.
The items in the menu: Menu | Action | ActionGroup
alias of __NoInterface__
Bases: enaml.qt.qt_widget.QtWidget
A Qt implementation of an Enaml Menu.
Get the QAction instance which comes immediately after the actions of the given child.
Parameters: | child (QtMenu, QtActionGroup, or QtAction) – The child of interest. |
---|---|
Returns: | result (QAction or None) – The QAction which comes immediately after the actions of the given child, or None if no actions follow the child. |
Handle the ‘set_context_menu’ action from the Enaml widget.
Bases: enaml.wx.wx_widget.WxWidget
A Wx implementation of an Enaml Menu.
Get the wxAction or wxMenu instance which comes immediately after the actions of the given child.
Parameters: | child (WxMenu, WxActionGroup, or WxAction) – The child of interest. |
---|---|
Returns: | result (wxAction, wxMenu, or None) – The wxAction or wxMenu which comes immediately after the actions of the given child, or None if no actions follow the child. |
Overridden parent class method.
This properly sets the enabled state on a menu using the custom wxMenu api.
Overrdden parent class method.
This properly sets the visible state on a menu using the custom wxMenu api.