@ -229,6 +229,13 @@ except:
pass
#Capture Ctlr+C / SIGINT and let @atexit handle the rest.
import signal
import sys
def signal_handler(sig, frame):
sys.exit(0) #atexit will trigger
signal.signal(signal.SIGINT, signal_handler)
#Catch Exceptions even if PyQt crashes.
sys._excepthook = sys.excepthook