mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
fix: scan_control.py default spinBox limits increases
This commit is contained in:
@ -239,6 +239,10 @@ class ScanControl(QWidget):
|
|||||||
# Instantiate the widget and set some properties if necessary
|
# Instantiate the widget and set some properties if necessary
|
||||||
widget = widget_class()
|
widget = widget_class()
|
||||||
|
|
||||||
|
# set high default range for spin boxes #TODO can be linked to motor/device limits from BEC
|
||||||
|
if isinstance(widget, (QSpinBox, QDoubleSpinBox)):
|
||||||
|
widget.setRange(-9999, 9999)
|
||||||
|
widget.setValue(0)
|
||||||
# Add the widget to the list
|
# Add the widget to the list
|
||||||
widgets.append(widget)
|
widgets.append(widget)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user