Page Contents

This Page

PushButton

class enaml.widgets.push_button.PushButton(parent=None, **kwargs)[source]

Bases: enaml.widgets.abstract_button.AbstractButton

A button control represented by a standard push button widget.

menu = None

A read only property which returns the button’s menu.

__implements__

alias of __NoInterface__

Backends

Qt

digraph inheritance183b271ec5 { rankdir=LR; width=8.0; ratio=compress; fontsize=14; size="8.0, 12.0"; "QtAbstractButton" [style="setlinewidth(0.5)",URL="enaml.widgets.abstract_button.AbstractButton.html#enaml.qt.qt_abstract_button.QtAbstractButton",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtControl" -> "QtAbstractButton" [arrowsize=0.5,style="setlinewidth(0.5)"]; "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)"]; "QtControl" [style="setlinewidth(0.5)",URL="enaml.widgets.control.Control.html#enaml.qt.qt_control.QtControl",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtConstraintsWidget" -> "QtControl" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QtConstraintsWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.constraints_widget.ConstraintsWidget.html#enaml.qt.qt_constraints_widget.QtConstraintsWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtWidget" -> "QtConstraintsWidget" [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]; "QtPushButton" [style="setlinewidth(0.5)",URL="#enaml.qt.qt_push_button.QtPushButton",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtAbstractButton" -> "QtPushButton" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class enaml.qt.qt_push_button.QtPushButton(object_id, parent, session)[source]

Bases: enaml.qt.qt_abstract_button.QtAbstractButton

A Qt implementation of an Enaml PushButton.

create_widget(parent, tree)[source]

Create the underlying QPushButton widget.

init_layout()[source]

Handle layout initialization for the push button.

menu()[source]

Find and return the menu child for this widget.

Returns:result (QMenu or None) – The menu defined for this widget, or None if not defined.
child_removed(child)[source]

Handle the child removed event for a QtPushButton.

child_added(child)[source]

Handle the child added event for a QtPushButton.

Wx

digraph inheritance723a112d42 { rankdir=LR; width=8.0; ratio=compress; fontsize=14; size="8.0, 12.0"; "WxObject" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25]; "WxControl" [style="setlinewidth(0.5)",URL="enaml.widgets.control.Control.html#enaml.wx.wx_control.WxControl",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxConstraintsWidget" -> "WxControl" [arrowsize=0.5,style="setlinewidth(0.5)"]; "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)"]; "WxPushButton" [style="setlinewidth(0.5)",URL="#enaml.wx.wx_push_button.WxPushButton",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxAbstractButton" -> "WxPushButton" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WxAbstractButton" [style="setlinewidth(0.5)",URL="enaml.widgets.abstract_button.AbstractButton.html#enaml.wx.wx_abstract_button.WxAbstractButton",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxControl" -> "WxAbstractButton" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WxConstraintsWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.constraints_widget.ConstraintsWidget.html#enaml.wx.wx_constraints_widget.WxConstraintsWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxWidget" -> "WxConstraintsWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class enaml.wx.wx_push_button.WxPushButton(object_id, parent, session)[source]

Bases: enaml.wx.wx_abstract_button.WxAbstractButton

A Wx implementation of the Enaml PushButton.

create_widget(parent, tree)[source]

Creates the underlying wx.Button control.

create(tree)[source]

Create and initialize the PushButton control.

set_checkable(checkable)[source]

Sets whether or not the widget is checkable.

get_checked()[source]

Returns the checked state of the widget.

set_checked(checked)[source]

Sets the widget’s checked state with the provided value.