summaryrefslogtreecommitdiff
path: root/gr-qtgui/examples/pyqt_time_raster_b.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/examples/pyqt_time_raster_b.py')
-rwxr-xr-xgr-qtgui/examples/pyqt_time_raster_b.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-qtgui/examples/pyqt_time_raster_b.py b/gr-qtgui/examples/pyqt_time_raster_b.py
index b9db6e1e8e..b29403819d 100755
--- a/gr-qtgui/examples/pyqt_time_raster_b.py
+++ b/gr-qtgui/examples/pyqt_time_raster_b.py
@@ -21,6 +21,7 @@
#
from gnuradio import gr
+from gnuradio import blocks
import sys
try:
@@ -59,7 +60,7 @@ class my_top_block(gr.top_block):
fs = 200
src0 = gr.vector_source_b(data0, True)
src1 = gr.vector_source_b(data1, True)
- thr = gr.throttle(gr.sizeof_char, 50000)
+ thr = blocks.throttle(gr.sizeof_char, 50000)
head = gr.head(gr.sizeof_char, 10000000)
self.snk1 = qtgui.time_raster_sink_b(fs, nrows, ncols, [], [],
"Time Raster Example", 2)