projects
/
forks
/
peks-announcer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b46bca
)
volume control and muting works now
author
Shane Pepperell
<shane.pepperell@me.com>
Sun, 15 Jan 2023 02:56:10 +0000
(
02:56
+0000)
committer
Shane Pepperell
<shane.pepperell@me.com>
Sun, 15 Jan 2023 02:56:10 +0000
(
02:56
+0000)
announcer/window.py
patch
|
blob
|
history
diff --git
a/announcer/window.py
b/announcer/window.py
index d339b589d7e94da6012c89741306b8437f05d29f..c08420ed2570ed45154e8098ca9cdc8eb1195976 100644
(file)
--- a/
announcer/window.py
+++ b/
announcer/window.py
@@
-75,10
+75,13
@@
class MainWindow(QtWidgets.QMainWindow):
self.test_volume_button.clicked.connect(self.play_random_sound)
def mute(self):
- pass
+ currentVolume = self.media_player.volume()
+ self.media_player.setVolume(0)
+ self.volume_slider.setValue(0)
def update_volume(self):
- pass
+ self.media_player.setVolume(self.volume_slider.value())
+
def update_volume_level(self):
volume_level = self.volume_slider.value()