I\'m tinkering around with pygame right now, and it seems like all the little programs that I make with it hang when I try to close them.
Take the following code, fo
If you are running it from IDLE, then you are missing pygame.quit().
This is caused by the IDLE python interpreter, which seems to keep the references around somehow. Make sure, you invoke pygame.quit() on exiting your application or game.
See: In IDLE why does the Pygame window not close correctly?
And also: Pygame Documentation - pygame.quit()