diff options
author | Tom Rondeau | 2011-04-14 21:42:53 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-04-14 21:42:53 -0400 |
commit | c685ac7d5a0aa44ac93a1e4859b547cca1d6b3f8 (patch) | |
tree | d9c5fea8cf5f6c3c1656d22c3c7d1215189b80b1 | |
parent | e762abc703e3224b54466685bf51b3fa90ee8edc (diff) | |
download | gnuradio-c685ac7d5a0aa44ac93a1e4859b547cca1d6b3f8.tar.gz gnuradio-c685ac7d5a0aa44ac93a1e4859b547cca1d6b3f8.tar.bz2 gnuradio-c685ac7d5a0aa44ac93a1e4859b547cca1d6b3f8.zip |
gr-qtgui: updating examples to explicitly shut down flow graphs.
-rwxr-xr-x | gr-qtgui/apps/pyqt_example_c.py | 3 | ||||
-rwxr-xr-x | gr-qtgui/apps/pyqt_example_f.py | 4 | ||||
-rwxr-xr-x | gr-qtgui/apps/qt_digital.py | 1 |
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 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() diff --git a/gr-qtgui/apps/pyqt_example_f.py b/gr-qtgui/apps/pyqt_example_f.py index 6b2131019..9e5d04008 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 c6920a05d..99c799f2a 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() |