Open toilettenkratzer-cpu opened 3 years ago
Hey there @toilettenkratzer-cpu. Thank you for reporting this. Which file are you writing about?
about the pianoputer.py file in the pianoputer directory
So our code only allows in quit events and key events so after we handle the quit event, all events should be key events. So a pygame event's key should exist.
I am unable to reproduce this. With your info from questions 1-6 I can figure out what is causing this issue. Thanks!
Python 3.9 Pygame 1.9.6 Pianoputer v 2.0.2 Debian 10 The error massage is the headline The error event is the key.event event
Sorry for this late answer
Hm that implies that pygame set_allowed is not working correctly on your system.
I've found this error and I did fix it. I put the lines 293-296 key = keyboard.get ... in before the line 291 elif event.key ... the error is that you called the function before you defined it. Hope that helped.