Skip to main content
Grammar, indentation fixes
Source Link
liggiorgio
  • 5.5k
  • 6
  • 27
  • 38

Your programm getprogram gets stuck after closing, bec. u because you only stop the enginesengine, and not the python programmPython program.

uYou need to exit the system

like as follows:

for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    pygame.quit()
                    sys.exit()

Your programm get stuck after closing, bec. u only stop the engines, and not the python programm.

u need to exit the system

like:

for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    pygame.quit()
                    sys.exit()

Your program gets stuck after closing because you only stop the engine, not the Python program.

You need to exit the system as follows:

for event in pygame.event.get():
    if event.type == pygame.QUIT:
        pygame.quit()
        sys.exit()
Source Link
Uik
  • 21
  • 2

Your programm get stuck after closing, bec. u only stop the engines, and not the python programm.

u need to exit the system

like:

for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    pygame.quit()
                    sys.exit()