summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2011-04-14 21:42:53 -0400
committerTom Rondeau <trondeau@vt.edu>2011-04-14 21:42:53 -0400
commitc685ac7d5a0aa44ac93a1e4859b547cca1d6b3f8 (patch)
treed9c5fea8cf5f6c3c1656d22c3c7d1215189b80b1
parente762abc703e3224b54466685bf51b3fa90ee8edc (diff)
gr-qtgui: updating examples to explicitly shut down flow graphs.
-rwxr-xr-xgr-qtgui/apps/pyqt_example_c.py3
-rwxr-xr-xgr-qtgui/apps/pyqt_example_f.py4
-rwxr-xr-xgr-qtgui/apps/qt_digital.py1
3 files changed, 5 insertions, 3 deletions
diff --git a/gr-qtgui/apps/pyqt_example_c.py b/gr-qtgui/apps/pyqt_example_c.py
index e1b58442f4..607ab12ee4 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()
diff --git a/gr-qtgui/apps/pyqt_example_f.py b/gr-qtgui/apps/pyqt_example_f.py
index 6b21310192..9e5d040081 100755
--- a/gr-qtgui/apps/pyqt_example_f.py
+++ b/gr-qtgui/apps/pyqt_example_f.py
@@ -144,5 +144,5 @@ 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()
diff --git a/gr-qtgui/apps/qt_digital.py b/gr-qtgui/apps/qt_digital.py
index c6920a05d0..99c799f2a7 100755
--- a/gr-qtgui/apps/qt_digital.py
+++ b/gr-qtgui/apps/qt_digital.py
@@ -274,3 +274,4 @@ if __name__ == "__main__":
tb = my_top_block();
tb.start()
tb.qapp.exec_()
+ tb.stop()