I just spent a fair amount of time finding a 64-bit installation of pygame to use with python 3.3, (here) and now am trying to make a window. However, although the window op
To answer the original question: You must call pygame.quit() after breaking the main loop. One elegant solution goes as follows:
pygame.quit()
def run(): pygame.init() while True: # ... for event in pygame.event.get(): # Handle other events if event.type == pygame.QUIT: return pygame.quit()