1
0
mirror of https://github.com/aidygus/LinVAM.git synced 2024-11-23 09:18:04 +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 time
import keyboard import keyboard
import threading import threading
import signal
class MainWnd(QWidget): class MainWnd(QWidget):
def __init__(self, p_parent = None): def __init__(self, p_parent = None):
@ -26,6 +27,7 @@ class MainWnd(QWidget):
self.ui.listeningChk.stateChanged.connect(self.slotListeningEnabled) self.ui.listeningChk.stateChanged.connect(self.slotListeningEnabled)
self.ui.ok.clicked.connect(self.slotOK) self.ui.ok.clicked.connect(self.slotOK)
self.ui.cancel.clicked.connect(self.slotCancel) self.ui.cancel.clicked.connect(self.slotCancel)
signal.signal(signal.SIGINT, signal.SIG_DFL)
if self.loadFromDatabase() > 0 : if self.loadFromDatabase() > 0 :
# if self.loadTestProfiles() > 0: # if self.loadTestProfiles() > 0: