def fire_signal_and_quit():
    nonlocal event_loop_signal
    event_loop_signal = signal.getsignal(signal.SIGINT)
    QtCore.QCoreApplication.exit()
def fire_signal_and_quit():
    nonlocal event_loop_signal
    event_loop_signal = signal.getsignal(signal.SIGINT)
    QtCore.QCoreApplication.exit()