Set volumeHorizontalSlider position on init
This commit is contained in:
parent
6a08d45677
commit
1a95171bb0
@ -27,9 +27,11 @@ class MainWindow(QMainWindow):
|
|||||||
self.__player = QMediaPlayer()
|
self.__player = QMediaPlayer()
|
||||||
self.__audio = QAudioOutput()
|
self.__audio = QAudioOutput()
|
||||||
self.__player.setAudioOutput(self.__audio)
|
self.__player.setAudioOutput(self.__audio)
|
||||||
self.setVolume(DEFAULT_VOLUME)
|
|
||||||
self.printGroups()
|
self.printGroups()
|
||||||
|
|
||||||
|
self.setVolume(DEFAULT_VOLUME)
|
||||||
|
self.ui.volumeHorizontalSlider.setValue(DEFAULT_VOLUME)
|
||||||
|
|
||||||
self.ui.groupsListWidget.itemClicked.connect(self.printStations)
|
self.ui.groupsListWidget.itemClicked.connect(self.printStations)
|
||||||
self.ui.stationsListWidget.itemClicked.connect(self.playRadio)
|
self.ui.stationsListWidget.itemClicked.connect(self.playRadio)
|
||||||
self.ui.playbackToolButton.clicked.connect(self.togglePlayer)
|
self.ui.playbackToolButton.clicked.connect(self.togglePlayer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user