From 8f83091fb94154aa6c7dd579ab4a902b2d74659c Mon Sep 17 00:00:00 2001 From: alisterburt Date: Wed, 21 Jun 2023 11:06:42 +0100 Subject: [PATCH] add minimum support --- src/superqt/sliders/_labeled.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/superqt/sliders/_labeled.py b/src/superqt/sliders/_labeled.py index f7a10e7a..b1aa656b 100644 --- a/src/superqt/sliders/_labeled.py +++ b/src/superqt/sliders/_labeled.py @@ -153,6 +153,8 @@ def _setValue(self, value: float): value = int(value) if self._slider.maximum() < value: self._slider.setMaximum(value) + elif self._slider.minimum() > value: + self._slider.setMinimum(value) self._slider.setValue(int(value)) def _rename_signals(self):