Checkbox

class Checkbox[source]

Bases: object

Add a checkbox.

Parameters
appcompas_view2.app.App

The app containing the widget.

parentQtWidgets.QWidget

The parent widget for the checkbox.

textstr

The text label of the checkbox.

actioncallable

The action associated with the checkox.

checkedbool, optional

If True, the checkbox will be displayed as checked.

Attributes
checkboxQtWidgets.QCheckBox

The actual checkbox widget.

actioncallable

The action associated with the toggle event of the checkbox.

Methods