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