Bugfix.
This commit is contained in:
parent
99bd9ddca8
commit
1610cd15de
1 changed files with 3 additions and 2 deletions
|
@ -1672,8 +1672,9 @@ class PesterWindow(MovingWindow):
|
||||||
sounds = [self.alarm, self.memosound, self.namesound, self.ceasesound,
|
sounds = [self.alarm, self.memosound, self.namesound, self.ceasesound,
|
||||||
self.honksound]
|
self.honksound]
|
||||||
for sound in sounds:
|
for sound in sounds:
|
||||||
if pygame and pygame.mixer:
|
if pygame and pygame.mixer and \
|
||||||
sound.set_volume(vol)
|
isinstance(sound, pygame.mixer.sound):
|
||||||
|
sound.set_volume(vol)
|
||||||
else:
|
else:
|
||||||
sound.setVolume(vol)
|
sound.setVolume(vol)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue