Dateien hochladen nach „“

master
Justus Jan Nico Wolff 2022-08-19 15:20:03 +02:00
parent 4008b82f8d
commit bf0b1813c6
1 changed files with 8 additions and 2 deletions

View File

@ -34,10 +34,16 @@ class game():
try:
self.sounddevice = __import__("sounddevice")
except OSError:
print("ERROR: Could not port audio library. so that means that no audio can be played.")
print("ERROR: Could not find port audio library. so that means that no audio can be played.")
input("enter to continue")
self.sounddevice = False
try:
self.soundfile = __import__("soundfile")
except OSError:
print("ERROR: Could not find sndfile library. so that means that no audio can be played.")
input("enter to continue")
self.sounddevice = False
self.soundfile = __import__("soundfile")
self.pressedkeys = {}
for i in string.ascii_letters:
self.pressedkeys[i] = False