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

Inheritance diagram of enaml.qt.qt_push_button.QtPushButton

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

Inheritance diagram of enaml.wx.wx_push_button.WxPushButton

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.