enaml.widgets.check_box

Classes

CheckBox

An checkable button represented by a standard check box widget.

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

Bases: 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

Check boxes are checkable by default.

proxy

A reference to the ProxyPushButton object.

activated

An event fired when an object’s proxy is activated. It is triggered once during the object lifetime, at the end of the activate_proxy method.

background

The background color of the widget.

destroyed

An event fired when an object has been destroyed. It is triggered once during the object lifetime, just before the object is removed from the tree structure.

enabled

Whether or not the widget is enabled.

initialized

An event fired when an object is initialized. It is triggered once during the object lifetime, at the end of the initialize method.

name

Export the ‘name’ attribute as a declarative member.

style_class

The style class to which this item belongs. Multiple classes can be separated with whitespace. An empty string indicates the widget does not belong to any style class.