1
0
mirror of https://github.com/aidygus/LinVAM.git synced 2024-11-14 13:18:06 +11:00

now it is possible to close from command line

This commit is contained in:
Daniele Scasciafratte 2019-04-21 15:16:20 +02:00
parent 9a63418228
commit a83482740b

View File

@ -11,6 +11,7 @@ import pickle
import time
import keyboard
import threading
import signal
class MainWnd(QWidget):
def __init__(self, p_parent = None):
@ -26,6 +27,7 @@ class MainWnd(QWidget):
self.ui.listeningChk.stateChanged.connect(self.slotListeningEnabled)
self.ui.ok.clicked.connect(self.slotOK)
self.ui.cancel.clicked.connect(self.slotCancel)
signal.signal(signal.SIGINT, signal.SIG_DFL)
if self.loadFromDatabase() > 0 :
# if self.loadTestProfiles() > 0: