forked from M-Labs/thermostat
Use setRange
This commit is contained in:
parent
180146bc34
commit
2db9e8fea3
|
@ -294,8 +294,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
self.fan_power_slider.setMinimumSize(QtCore.QSize(200, 0))
|
self.fan_power_slider.setMinimumSize(QtCore.QSize(200, 0))
|
||||||
self.fan_power_slider.setMaximumSize(QtCore.QSize(200, 16777215))
|
self.fan_power_slider.setMaximumSize(QtCore.QSize(200, 16777215))
|
||||||
self.fan_power_slider.setBaseSize(QtCore.QSize(200, 0))
|
self.fan_power_slider.setBaseSize(QtCore.QSize(200, 0))
|
||||||
self.fan_power_slider.setMinimum(1)
|
self.fan_power_slider.setRange(1, 100)
|
||||||
self.fan_power_slider.setMaximum(100)
|
|
||||||
self.fan_power_slider.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
self.fan_power_slider.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
self.gan_layout.addWidget(self.fan_power_slider)
|
self.gan_layout.addWidget(self.fan_power_slider)
|
||||||
self.fan_auto_box = QtWidgets.QCheckBox(parent=self.fan_group)
|
self.fan_auto_box = QtWidgets.QCheckBox(parent=self.fan_group)
|
||||||
|
|
Loading…
Reference in New Issue