unable to handle signals when using PyQt...

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@41 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2008-09-01 07:56:54 +07:00
parent 983b380de4
commit a55b27ca5e
2 changed files with 1 additions and 11 deletions

@ -23,17 +23,10 @@ from PyQt4 import QtCore, QtGui
import parser
import relation
import maingui
import signal
version="0.6"
def term(signal,frame):
print "Interrupt----\n"
#sys.exit(0)
if __name__ == "__main__":
signal.signal(signal.SIGTERM,term)
signal.signal(signal.SIGINT,term)
app = QtGui.QApplication(sys.argv)
Form = QtGui.QWidget()
@ -42,6 +35,3 @@ if __name__ == "__main__":
Form.show()
sys.exit(app.exec_())