Skip to main content

CheckBox Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Two-state check box with a label. CheckBox.ValueChanged fires on each toggle.

class CheckBox(Widget): ...

Constructors​

CheckBox(Widget parent)​

def __init__(self, parent: Widget):

Create a check box inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Properties​

IsChecked​

IsChecked: bool # @property / @setter

Checked state. Read-back is supported by LVGL.

Returns bool

Text​

Text: str # @property / @setter

Label text shown next to the check box. null is treated as empty. Getter returns the last value set.

Returns string

Events​

ValueChanged​

ValueChanged # += / -= handler

Fires when CheckBox.IsChecked toggles via user interaction. Runs on the UI thread.