v.licheni.net
/
stack
/
code
/
dboxswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d06f73c
)
makes the Qt application quit upong sigint
author
stack
<stack@inventati.org>
Sun, 8 Jul 2012 18:19:50 +0000
(20:19 +0200)
committer
stack
<stack@inventati.org>
Sun, 8 Jul 2012 18:19:50 +0000
(20:19 +0200)
main.py
patch
|
blob
|
history
diff --git
a/main.py
b/main.py
index
2c187cb
..
58ac693
100755
(executable)
--- a/
main.py
+++ b/
main.py
@@
-33,6
+33,9
@@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
"""
+
+import signal
+
from profhandler import ProfHandler
from gui import Gui
from PyQt4 import QtGui
from profhandler import ProfHandler
from gui import Gui
from PyQt4 import QtGui
@@
-40,6
+43,8
@@
from PyQt4 import QtGui
from settings import appconf
if __name__ == '__main__':
from settings import appconf
if __name__ == '__main__':
+ #makes the application quit upon sigint
+ signal.signal(signal.SIGINT, signal.SIG_DFL)
#Application init
prManager = ProfHandler()
#Application init
prManager = ProfHandler()