summaryrefslogtreecommitdiff
path: root/gr-qtgui/examples/pyqt_waterfall_f.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/examples/pyqt_waterfall_f.py')
-rwxr-xr-xgr-qtgui/examples/pyqt_waterfall_f.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-qtgui/examples/pyqt_waterfall_f.py b/gr-qtgui/examples/pyqt_waterfall_f.py
index 725117d06b..1c4063e31b 100755
--- a/gr-qtgui/examples/pyqt_waterfall_f.py
+++ b/gr-qtgui/examples/pyqt_waterfall_f.py
@@ -21,6 +21,7 @@
#
from gnuradio import gr, filter
+from gnuradio import blocks
import sys
try:
@@ -147,7 +148,7 @@ class my_top_block(gr.top_block):
src1 = analog.sig_source_f(Rs, analog.GR_SIN_WAVE, f1, 0.1, 0)
src2 = analog.sig_source_f(Rs, analog.GR_SIN_WAVE, f2, 0.1, 0)
- src = gr.add_ff()
+ src = blocks.add_ff()
thr = gr.throttle(gr.sizeof_float, 100*npts)
self.snk1 = qtgui.waterfall_sink_f(npts, filter.firdes.WIN_BLACKMAN_hARRIS,
0, Rs,