Answers for "event.type == pygame.quit gives me error python 3.9"

3

how to make it so the pygame window will close

running = True
while running:
  for event in pygame.event.get():
    if event.type == pygame.QUIT:
      running = False
    if running == False:
      pygame.quit()
Posted by: Guest on December-21-2019

Code answers related to "event.type == pygame.quit gives me error python 3.9"

Python Answers by Framework

Browse Popular Code Answers by Language