Jan-10-2021, 05:16 PM
You get the error when you close the window? Then I don't it's not a problem necessarily.
I've spent many hours over exotic errors as it seems once you hit the close button on the window
I've had it say my joystick wasn't initialized my "Text has zero width", and others.
try exiting the program instantly rather than allowing the loop to play out.
I've spent many hours over exotic errors as it seems once you hit the close button on the window
pygame.QUIT()
a bunch of pygame stuff is unitilized, so code between the pygame.QUIT()
and the actual end of the program which needs pygame ititalized can throw errors. I've had it say my joystick wasn't initialized my "Text has zero width", and others.
try exiting the program instantly rather than allowing the loop to play out.
for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit()