RQLabel

class pyreaqtive.widgets.rqlabel.RQLabel(model: Union[pyreaqtive.models.rqmodel.RQModel, str], *args, rq_if: Optional[pyreaqtive.models.rqbool.RQBool] = None, **kwargs)

Bases: pyreaqtive.widgets.rqwidget.RQWidget, PyQt5.QtWidgets.QLabel

Reactive Label Widget

model: pyreaqtive.models.rqmodel.RQModel = None

Model linked to the widget

__init__(model: Union[pyreaqtive.models.rqmodel.RQModel, str], *args, rq_if: Optional[pyreaqtive.models.rqbool.RQBool] = None, **kwargs)

Constructor.

Parameters
  • model – Model to link the widget to

  • args – arguments to pass to the native pyqt widget

  • rq_if – RQBool that controls the visibility

  • **kwargs – arguments to pass to the native pyqt widget

_rq_data_changed()None

Slot triggered when the model changes value.

Updates value of the dial