unable to handle signals when using PyQt...
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@41 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
983b380de4
commit
a55b27ca5e
@ -33,4 +33,4 @@
|
||||
- Fixes to run on Mac OsX
|
||||
- Added Makefile
|
||||
- Able to create .app MacOsX files using "make app"
|
||||
- Able to create tar.gz file containing Mac OsX application and samples using "make mac"
|
||||
- Able to create tar.gz file containing Mac OsX application and samples using "make mac"
|
||||
|
@ -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_())
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user