Mercurial > skaapsteker
diff skaapsteker/sound.py @ 632:0675f390653c
Initial port to Python 3 and Pygame 2.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Fri, 20 Jan 2023 20:01:06 +0100 |
parents | 62569f486ede |
children |
line wrap: on
line diff
--- a/skaapsteker/sound.py Tue Mar 17 22:40:45 2020 +0200 +++ b/skaapsteker/sound.py Fri Jan 20 20:01:06 2023 +0100 @@ -29,7 +29,7 @@ test_sound.play() self.sound_enabled = True except pygame.error: - print 'Unable to enable sound' + print('Unable to enable sound') self.sound_enabled = False else: self.sound_enabled = False @@ -45,7 +45,7 @@ mixer.music.play(-1) # Loop forever mixer.music.set_volume(volume) except pygame.error: - print 'Unable to load track' + print('Unable to load track') def stop_music(self): if self.sound_enabled: