From 1f771945382dc63b4033b059623cadf312372955 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 29 Nov 2014 21:54:29 +0100 Subject: [PATCH] Allow stopping test.py with ctrl-C --- pyqt4/test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyqt4/test.py b/pyqt4/test.py index 1045f8c..5c20eef 100755 --- a/pyqt4/test.py +++ b/pyqt4/test.py @@ -19,10 +19,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import sys +import sys, signal from PyQt4 import Qt import QTermWidget +signal.signal(signal.SIGINT, signal.SIG_DFL) + a = Qt.QApplication(sys.argv) w = QTermWidget.QTermWidget()