From: Shane Pepperell Date: Sun, 15 Jan 2023 02:44:50 +0000 (+0000) Subject: fixed range not going to 100%, set init value to 50% X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=f4fbe47073e0c73e89df378fabac224695b97c4b;p=forks%2Fpeks-announcer.git fixed range not going to 100%, set init value to 50% --- diff --git a/announcer/window.py b/announcer/window.py index ac252db..1ebe1a5 100644 --- a/announcer/window.py +++ b/announcer/window.py @@ -32,6 +32,8 @@ class MainWindow(QtWidgets.QMainWindow): self.setFixedSize(250, 150) self.volume_slider = QtWidgets.QSlider(Qt.Horizontal) + self.volume_slider.setRange(0, 100) + self.volume_slider.setValue(50) self.mute_button = QtWidgets.QPushButton("Mute") self.test_volume_button = QtWidgets.QPushButton("Test sound") self.headerlabel = QtWidgets.QLabel("Hello World")