Why does the pygame window not close properly?
问题 When I go to close the program window, the program freezes, then I am forced to force quit the program. Why doesn't the program close when the X / Close button is clicked on. I am also using python 2.7 if that matters. import pygame import os, sys from itertools import * from oryxsprites import * from oryxbackground import * running = True while running: backgroundmain() pygame.display.set_caption('OryxGame') #pygame.display.set_icon(biggrasstile) for event in pygame.event.get(): if event