Checkbox
- class compas_view2.ui.Checkbox(app, parent, *, text, action, checked=False)[source]
Bases:
objectAdd a checkbox.
- Parameters:
app (
compas_view2.app.App) – The app containing the widget.parent (QtWidgets.QWidget) – The parent widget for the checkbox.
text (str) – The text label of the checkbox.
action (callable) – The action associated with the checkox.
checked (bool, optional) – If True, the checkbox will be displayed as checked.
- Attributes:
checkbox (QtWidgets.QCheckBox) – The actual checkbox widget.
action (callable) – The action associated with the toggle event of the checkbox.