Skip to content

Commit f0cefc3

Browse files
committed
added_proper_exit_to_draw
1 parent 612e7d3 commit f0cefc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lineflow/simulation/line.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import simpy
23
import pygame
34
import numpy as np
@@ -178,6 +179,7 @@ def _draw(self, screen, actions=None):
178179
for event in pygame.event.get():
179180
if event.type == pygame.QUIT:
180181
teardown_draw()
182+
sys.exit()
181183

182184
screen.fill('white')
183185

0 commit comments

Comments
 (0)