summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/pyqt_example_c.py
diff options
context:
space:
mode:
authorTom Rondeau2011-04-10 16:33:21 -0400
committerTom Rondeau2011-04-10 16:33:21 -0400
commit4ffbb545436f60acd80e1b28714e76bf502b0a2e (patch)
treed0c3f0ad6280ff97267212747df09ff148c5016e /gr-qtgui/apps/pyqt_example_c.py
parent42caa092c83be06df3c2f38a39285096bf8a4cfe (diff)
downloadgnuradio-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-xgr-qtgui/apps/pyqt_example_c.py4
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()