summaryrefslogtreecommitdiff
path: root/gr-qtgui/src/python/pyqt_example.py
diff options
context:
space:
mode:
authorjcorgan2009-04-16 07:54:34 +0000
committerjcorgan2009-04-16 07:54:34 +0000
commit6556095628428156c790b1bd9be67dc3e4c0a797 (patch)
treea6a7ba667f03be27f0529f3f5ce1d10883c72c05 /gr-qtgui/src/python/pyqt_example.py
parentfcc7d7047805520c987fbb4f503538eccd659f34 (diff)
downloadgnuradio-6556095628428156c790b1bd9be67dc3e4c0a797.tar.gz
gnuradio-6556095628428156c790b1bd9be67dc3e4c0a797.tar.bz2
gnuradio-6556095628428156c790b1bd9be67dc3e4c0a797.zip
Change our examples to use gr.channel_model instead of blks2.channel_model
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10861 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-qtgui/src/python/pyqt_example.py')
-rwxr-xr-xgr-qtgui/src/python/pyqt_example.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-qtgui/src/python/pyqt_example.py b/gr-qtgui/src/python/pyqt_example.py
index 27b949c81..ac636295d 100755
--- a/gr-qtgui/src/python/pyqt_example.py
+++ b/gr-qtgui/src/python/pyqt_example.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-from gnuradio import gr, blks2
+from gnuradio import gr
from gnuradio.qtgui import qtgui
from PyQt4 import QtGui, QtCore
import sys, sip
@@ -111,7 +111,7 @@ class my_top_block(gr.top_block):
src1 = gr.sig_source_c(Rs, gr.GR_SIN_WAVE, f1, 0.1, 0)
src2 = gr.sig_source_c(Rs, gr.GR_SIN_WAVE, f2, 0.1, 0)
src = gr.add_cc()
- channel = blks2.channel_model(0.001)
+ channel = gr.channel_model(0.001)
thr = gr.throttle(gr.sizeof_gr_complex, 100*fftsize)
self.snk1 = qtgui.sink_c(fftsize, gr.firdes.WIN_BLACKMAN_hARRIS,
-Rs/2, Rs/2,