May-25-2018, 05:05 PM
you should never use sys.quit to exit a program. You should let the program run to the end of the script. Your problem is you need pygame.quit() if i recall in combo with IDLE to quit properly.
running = True while running: ... if event.type == pygame.QUIT: running = Falseand then at the very end of the script put
pygame.quit()
Recommended Tutorials: