Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to close the window in pygame

import ....,  sys #import sys

while ....: #your loop
          for event in pygame.event.get(): #user exit programm
            if event.type == pygame.QUIT:
          		pygame.quit()
                sys.exit()
 
PREVIOUS NEXT
Tagged: #close #window #pygame
ADD COMMENT
Topic
Name
6+9 =