edifice.CheckBox¶
-
class
edifice.CheckBox(checked=False, text='', on_change=<function CheckBox.<lambda>>, **kwargs)[source]¶ Bases:
edifice.base_components.QtWidgetComponentCheckbox widget.
Checkbox on the left.¶
A checkbox allows the user to specify some boolean state.
The checked prop determines the initial check-state of the widget. When the user toggles the check state, the on_change callback is called with the new check state.
- Parameters
checked (
bool) – whether or not the checkbox is checked initiallytext (
Any) – text for the label of the checkboxon_change (
Callable[[bool],None]) – callback for when the check box state changes. The callback receives the new state of the check box as an argument.
Methods
set_on_change(on_change)Attributes
childrenThe children of this component.
propsThe props of this component.