summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/pyqt_example_c.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/apps/pyqt_example_c.py')
-rwxr-xr-xgr-qtgui/apps/pyqt_example_c.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-qtgui/apps/pyqt_example_c.py b/gr-qtgui/apps/pyqt_example_c.py
index e1b58442f..607ab12ee 100755
--- a/gr-qtgui/apps/pyqt_example_c.py
+++ b/gr-qtgui/apps/pyqt_example_c.py
@@ -145,5 +145,6 @@ class my_top_block(gr.top_block):
if __name__ == "__main__":
tb = my_top_block();
tb.start()
- sys.exit(tb.qapp.exec_())
+ tb.qapp.exec_()
+ tb.stop()