-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'Event' object has no attribute 'key' #24
Comments
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.
I am unable to reproduce this. With your info from questions 1-6 I can figure out what is causing this issue. |
Python 3.9 |
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.
The text was updated successfully, but these errors were encountered: