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
I had the same problem, but solved it by doing the following:
try: while True: for event in pygame.event.get(): if event.type==QUIT or pygame.key.get_pressed()[K_ESCAPE]: pygame.quit() break finally: pygame.quit()