Added SIGQUIT
This commit is contained in:
parent
25e143d406
commit
2b407587e8
1 changed files with 7 additions and 0 deletions
7
wheel.py
7
wheel.py
|
@ -3,6 +3,13 @@ import time
|
|||
import math
|
||||
import random
|
||||
import colorsys
|
||||
import signal
|
||||
import sys
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
sys.exit(0)
|
||||
|
||||
signal.signal(signal.SIGQUIT, signal_handler)
|
||||
|
||||
# Initialize Pygame
|
||||
pygame.init()
|
||||
|
|
Loading…
Reference in a new issue