From 5c67026637472d9c77185a59e1bf9a24cfe01307 Mon Sep 17 00:00:00 2001 From: wyzula-jan <133381102+wyzula-jan@users.noreply.github.com> Date: Wed, 8 Nov 2023 16:21:21 +0100 Subject: [PATCH] fix: scan_control.py default spinBox limits increases --- bec_widgets/widgets/scan_control/scan_control.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bec_widgets/widgets/scan_control/scan_control.py b/bec_widgets/widgets/scan_control/scan_control.py index f9c9ab37..3a39cf35 100644 --- a/bec_widgets/widgets/scan_control/scan_control.py +++ b/bec_widgets/widgets/scan_control/scan_control.py @@ -239,6 +239,10 @@ class ScanControl(QWidget): # Instantiate the widget and set some properties if necessary 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 widgets.append(widget)