changed quit() to sys.exit()
parent
4997a00be3
commit
9d29da7284
|
@ -1,3 +1,4 @@
|
||||||
|
import sys
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import pygame
|
import pygame
|
||||||
|
@ -138,7 +139,7 @@ class MainLoop:
|
||||||
for event in pygame_events:
|
for event in pygame_events:
|
||||||
if event.type == pygame.QUIT:
|
if event.type == pygame.QUIT:
|
||||||
pygame.quit()
|
pygame.quit()
|
||||||
quit()
|
sys.exit()
|
||||||
|
|
||||||
self.screen.fill((0, 0, 0))
|
self.screen.fill((0, 0, 0))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue