Python Launcher Not Responding With Pygame
I am new to Python and Pygame, and right now I'm trying to open a test window with some simple code : import pygame, sys from pygame.locals import * pygame.init() DISPLAYSURF = p
Solution 1:
I had the exact same problem with essentially the same code above, and upgrading the pygame library solved the issue, as answered by Tom-cz in a similar issue https://stackoverflow.com/a/60496097/13407487.
If you run the above code in IDLE or python console, you'll see it cause the Python Launcher to hang (and bounce in the dock) with no window appearing:
DISPLAYSURF = pygame.display.set_mode((400, 300))
The solution was to upgrade pygame:
python3 -m pip install pygame==2.0.0.dev6
My setup: MacOS Catalina 10.15.4 Python 3.8.1 pygame 1.9.6 -> which I upgraded to 2.0.0.dev6
Solution 2:
You could install the specific version of pygame.Do this in prompt:
pip3 install pygame==2.0.0.dev6
Post a Comment for "Python Launcher Not Responding With Pygame"