diff options
author | Tom Rondeau | 2011-04-10 16:33:21 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-04-10 16:33:21 -0400 |
commit | 4ffbb545436f60acd80e1b28714e76bf502b0a2e (patch) | |
tree | d0c3f0ad6280ff97267212747df09ff148c5016e /gr-qtgui/apps/pyqt_example_c.py | |
parent | 42caa092c83be06df3c2f38a39285096bf8a4cfe (diff) | |
download | gnuradio-4ffbb545436f60acd80e1b28714e76bf502b0a2e.tar.gz gnuradio-4ffbb545436f60acd80e1b28714e76bf502b0a2e.tar.bz2 gnuradio-4ffbb545436f60acd80e1b28714e76bf502b0a2e.zip |
gr-qtgui: updating example apps so the wrapped instance of the qtgui is not a class member; this ensures proper cleanup on exit.
Diffstat (limited to 'gr-qtgui/apps/pyqt_example_c.py')
-rwxr-xr-x | gr-qtgui/apps/pyqt_example_c.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-qtgui/apps/pyqt_example_c.py b/gr-qtgui/apps/pyqt_example_c.py index 90eec3694..e1b58442f 100755 --- a/gr-qtgui/apps/pyqt_example_c.py +++ b/gr-qtgui/apps/pyqt_example_c.py @@ -136,9 +136,9 @@ class my_top_block(gr.top_block): # Wrap the pointer as a PyQt SIP object # This can now be manipulated as a PyQt4.QtGui.QWidget - self.pyWin = sip.wrapinstance(pyQt, QtGui.QWidget) + pyWin = sip.wrapinstance(pyQt, QtGui.QWidget) - self.main_box = dialog_box(self.pyWin, self.ctrl_win) + self.main_box = dialog_box(pyWin, self.ctrl_win) self.main_box.show() |