From 2db9e8fea39fe8b862b631893cfbdefb16963768 Mon Sep 17 00:00:00 2001 From: atse Date: Fri, 18 Aug 2023 11:18:04 +0800 Subject: [PATCH] Use setRange --- pytec/tec_qt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 584ac05..c20a649 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -294,8 +294,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): self.fan_power_slider.setMinimumSize(QtCore.QSize(200, 0)) self.fan_power_slider.setMaximumSize(QtCore.QSize(200, 16777215)) self.fan_power_slider.setBaseSize(QtCore.QSize(200, 0)) - self.fan_power_slider.setMinimum(1) - self.fan_power_slider.setMaximum(100) + self.fan_power_slider.setRange(1, 100) self.fan_power_slider.setOrientation(QtCore.Qt.Orientation.Horizontal) self.gan_layout.addWidget(self.fan_power_slider) self.fan_auto_box = QtWidgets.QCheckBox(parent=self.fan_group)