RQSpinBox¶
- class pyreaqtive.widgets.rqspinbox.RQSpinBox(model, *args, rq_if=None, rq_disabled=None, wait_for_finish=False, **kwargs)¶
Bases:
pyreaqtive.widgets.rqwidget.RQWidget,PyQt5.QtWidgets.QSpinBoxReactive SpinBox Widget.
- Parameters
model (Union[pyreaqtive.models.rqint.RQInt, pyreaqtive.models.rqobject.RQObject]) –
args (Any) –
rq_if (Optional[pyreaqtive.models.rqbool.RQBool]) –
rq_disabled (Optional[pyreaqtive.models.rqbool.RQBool]) –
wait_for_finish (bool) –
kwargs (Any) –
- Return type
None
- model: Union[pyreaqtive.models.rqint.RQInt, pyreaqtive.models.rqobject.RQObject]¶
Model linked to the widget
- __init__(model, *args, rq_if=None, rq_disabled=None, wait_for_finish=False, **kwargs)¶
Constructor.
- Parameters
model (Union[pyreaqtive.models.rqint.RQInt, int, pyreaqtive.models.rqobject.RQObject]) – Model to link the widget to
*args – arguments to pass to the native pyqt widget
rq_if (Optional[pyreaqtive.models.rqbool.RQBool]) – RQBool that controls the visibility
rq_disabled (Optional[pyreaqtive.models.rqbool.RQBool]) – RQBool that controls the disabling
wait_for_finish (bool) – if true, the model is not updated until Enter is pressed or focus is changed
**kwargs – arguments to pass to the native pyqt widget
args (Any) –
kwargs (Any) –
- Return type
None
- _rq_data_changed()¶
Slot triggered when the model changes value.
Updates value of the spinbox
- Return type
None
- _rq_writing = False¶
Flag to signal that this widget is triggering the update and is writing to the model
- _rq_reading = False¶
Flag to indicate that the model changed and the widget is reading the model
- _update_model()¶
Propagates changes to the model.
- Return type
None