From 7d736823b18ebcc62d7c927a8f4f0701c0f442d0 Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Wed, 31 May 2017 16:28:05 +0200 Subject: [PATCH] [bugfix] min/max values of automatically generated spinboxes changed to -10e7 to 10e7 --- pylot/core/util/widgets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 4c9e7860..e10c33e8 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1916,7 +1916,8 @@ class AutoPickParaBox(QtGui.QWidget): if type(box) == QtGui.QLineEdit: box.setText(str(value)) elif type(box) == QtGui.QSpinBox or type(box) == QtGui.QDoubleSpinBox: - box.setMaximum(100*value) + box.setMaximum(10e7) + box.setMinimum(-10e7) box.setValue(value) elif type(box) == QtGui.QCheckBox: if value == 'True': @@ -2185,7 +2186,7 @@ class GraphicsTab(PropTab): self.spinbox_nth_sample = QtGui.QSpinBox() label = QLabel('nth sample') self.spinbox_nth_sample.setMinimum(1) - self.spinbox_nth_sample.setMaximum(100) + self.spinbox_nth_sample.setMaximum(10e3) self.spinbox_nth_sample.setValue(int(nth_sample)) label.setToolTip('Plot every nth sample (to speed up plotting)') self.main_layout.addWidget(label, 0, 0)