Page Contents

This Page

CheckBox

class enaml.widgets.check_box.CheckBox(parent=None, **kwargs)[source]

Bases: enaml.widgets.abstract_button.AbstractButton

An checkable button represented by a standard check box widget.

Use a check box when it’s necessary to toggle a boolean value independent of any other widgets in a group.

When its necessary to allow the toggling of only one value in a group of values, use a group of RadioButtons or the RadioGroup control from the Enaml standard library.

The interface for AbstractButton fully defines the interface for a CheckBox.

checkable = None

Check boxes are checkable by default.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_check_box.QtCheckBox

class enaml.qt.qt_check_box.QtCheckBox(object_id, parent, session)[source]

Bases: enaml.qt.qt_abstract_button.QtAbstractButton

A Qt implementation of an Enaml CheckBox.

create_widget(parent, tree)[source]

Create the underlying check box widget.

Wx

Inheritance diagram of enaml.wx.wx_check_box.WxCheckBox

class enaml.wx.wx_check_box.WxCheckBox(object_id, parent, session)[source]

Bases: enaml.wx.wx_abstract_button.WxAbstractButton

A Wx implementation of an Enaml CheckBox.

create_widget(parent, tree)[source]

Creates the underlying wxProperCheckBox.

create(tree)[source]

Create and initialize the check box 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.