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
digraph inheritancee20825a7dc { rankdir=LR; width=8.0; ratio=compress; fontsize=14; size="8.0, 12.0"; "QtWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.widget.Widget.html#enaml.qt.qt_widget.QtWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtObject" -> "QtWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QtObject" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25]; "QtMenu" [style="setlinewidth(0.5)",URL="#enaml.qt.qt_menu.QtMenu",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtWidget" -> "QtMenu" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
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.
digraph inheritancee3240430ea { rankdir=LR; width=8.0; ratio=compress; fontsize=14; size="8.0, 12.0"; "WxWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.widget.Widget.html#enaml.wx.wx_widget.WxWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxObject" -> "WxWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WxMenu" [style="setlinewidth(0.5)",URL="#enaml.wx.wx_menu.WxMenu",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxWidget" -> "WxMenu" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WxObject" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25]; }
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. |
Handle the ‘set_context_menu’ action from the Enaml widget.
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.
Overridden parent class method.
Menus do not have a minimum size, so this method is a no-op.