Hi, not sure of this is in the right place, so bear with me.
I have installed Python 3.8.3 on my Macbook Air running MacOS Catalina and installed pygame using pip3 install pygame --pre
I can run python -m pygame.examples.aliens and it seems to work ok, I can move the cannon and shoot at the aliens.
I am using Rob Miles book "Begin to Code with Python" to learn Python and he has written a library called snaps that utilises pygame functions to manage windows - one of the examples displays a prompt in a gui based window on the screen and is supposed to accept keyboard input. When I run it, the window and the prompt is displayed but the keyboard input doesn't seem to be accepted and I have to force quit it.
Any ideas would be great
Hmmm, I've just tested it on a Windows machine with the same result - looks like it might be an issue with the snaps library - I might try to contact Microsoft Press and see if they can assist - wish me luck :)
I have installed Python 3.8.3 on my Macbook Air running MacOS Catalina and installed pygame using pip3 install pygame --pre
I can run python -m pygame.examples.aliens and it seems to work ok, I can move the cannon and shoot at the aliens.
I am using Rob Miles book "Begin to Code with Python" to learn Python and he has written a library called snaps that utilises pygame functions to manage windows - one of the examples displays a prompt in a gui based window on the screen and is supposed to accept keyboard input. When I run it, the window and the prompt is displayed but the keyboard input doesn't seem to be accepted and I have to force quit it.
Any ideas would be great
(Jul-06-2020, 04:50 AM)ScottB Wrote: Hi, not sure of this is in the right place, so bear with me.
I have installed Python 3.8.3 on my Macbook Air running MacOS Catalina and installed pygame using pip3 install pygame --pre
I can run python -m pygame.examples.aliens and it seems to work ok, I can move the cannon and shoot at the aliens.
I am using Rob Miles book "Begin to Code with Python" to learn Python and he has written a library called snaps that utilises pygame functions to manage windows - one of the examples displays a prompt in a gui based window on the screen and is supposed to accept keyboard input. When I run it, the window and the prompt is displayed but the keyboard input doesn't seem to be accepted and I have to force quit it.
Any ideas would be great
Hmmm, I've just tested it on a Windows machine with the same result - looks like it might be an issue with the snaps library - I might try to contact Microsoft Press and see if they can assist - wish me luck :)