From c9ea25eed66816cbf661fdfbcc3ef1f13205cfdd Mon Sep 17 00:00:00 2001 From: Mark Schloeman Date: Sat, 15 May 2021 20:24:02 -0400 Subject: [PATCH] SpinBox in dec mode sets minStep to step as fallback --- pyqtgraph/widgets/SpinBox.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyqtgraph/widgets/SpinBox.py b/pyqtgraph/widgets/SpinBox.py index b1c72668..88cc02a6 100644 --- a/pyqtgraph/widgets/SpinBox.py +++ b/pyqtgraph/widgets/SpinBox.py @@ -223,6 +223,10 @@ class SpinBox(QtGui.QAbstractSpinBox): if 'format' not in opts: self.opts['format'] = asUnicode("{value:d}{suffixGap}{suffix}") + + if self.opts['dec']: + if self.opts.get('minStep') is None: + self.opts['minStep'] = self.opts['step'] if 'delay' in opts: self.proxy.setDelay(opts['delay'])