0
0
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:
wyzula-jan
2023-11-08 16:21:21 +01:00
parent ee2f36fb40
commit 5c67026637

View File

@ -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)