how to make it so the pygame window will close

Solutions on MaxInterview for how to make it so the pygame window will close by the best coders in the world

showing results for - "how to make it so the pygame window will close"
Arianna
11 Apr 2018
1running = True
2while running:
3  for event in pygame.event.get():
4    if event.type == pygame.QUIT:
5      running = False
6    if running == False:
7      pygame.quit()
queries leading to this page
pygame won 27t quitpygame window killpygame stops runningpython idle exit eventwhen i make pygame window not closepygame exit eventpygame close iwndowhow to close out of a pygame window that wont close terminalhow to close pygame windowhow to close the pygame window by a commandclose a pygame windowexit pygame windowend pygamehow to close window in pygamepygame create basic window with close operationpygame window hide eventpygame close with close buttpmnpygame doesnt close filequit game on x pygame pygame x buttonhow to close a window pygamesys exit 28 29 pygame jupyter notebookhow to exit a pygame windowpygame window without command prompthow to modify close button in pygamepygame closing and opening screenclose window pygamecan 27t close pygame windowwhy does my pygame window open and close right away 3fafter quit pygame doesnt closewhy can 27t i close the pygame windowpygame quit not workinghow to make a pygame window closepygame window doesn 27t closepygame window wont closeclose pygamewhy does my pygame open then closeclose pygame after usagehow to allow user to cross quit in pygamehow to close a pygame windowpygame close window eventpygame quitpython wont close pygamepygame close windowscan i customise close button of a pygame filepygame check if user closes windowpygame window not closingpygame close windowpygame window does not closehow to keep pygame display runninghow to make close button in pygame windowpygame automatically closes itselfquit pygame windowpygame get exitpython pygame quithow to make exit button in pygame windowhow to quit pygamehow to enable to quit button on pygamewhen i make pygame window 22not close 22close pygame windowpygame exit when i starti close one window and then the other part of the game opens pygamepygame can 27t close windowa code script that allows me to close the window in pygame codehow to close windows in pygamepygame quit windowwhy won 27t my pygame window closepygame window closes immediatelyevent type 3d 3d pygame quit gives me error python 3 9close pygame windpwpygame quit 28 29 errorpygame quithow to have a window pop up in pygamehow to make it so the pygame window will closepygame x buttonhow to exit pygamepygame custom close buttonpygame on window closepygame quit not workingclose application with pygame playing pythonhow to close a pygame screen and then reopenhow to quit pygame windowhow to make it so the pygame window will close