Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()
 
PREVIOUS NEXT
Tagged: #pygame #window #close
ADD COMMENT
Topic
Name
1+5 =