Replace playsound by playsound3 package

Closes #13629
This commit is contained in:
Cédric Krier committed 2024-11-30 15:28:24 +01:00
1 parent fd903381db
commit d1f97ed83b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ dist = setup(name=name,
],
extras_require={
'calendar': ['GooCalendar>=0.7'],
'sound': ['playsound'],
'sound': ['playsound3'],
},
zip_safe=False,
**args
+1 -1
View File
@@ -1556,7 +1556,7 @@ def setup_window(window):
def play_sound(self, sound='success'):
try:
from playsound import playsound
from playsound3 import playsound
playsound(os.path.join(SOUNDS_DIR, f'{sound}.wav'))
except ImportError:
pass