summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/apps/howto_square.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-howto-write-a-block/apps/howto_square.py')
-rwxr-xr-xgr-howto-write-a-block/apps/howto_square.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-howto-write-a-block/apps/howto_square.py b/gr-howto-write-a-block/apps/howto_square.py
index fd03b74c42..4a9bfe3f8e 100755
--- a/gr-howto-write-a-block/apps/howto_square.py
+++ b/gr-howto-write-a-block/apps/howto_square.py
@@ -30,7 +30,7 @@ class howto_square(grc_wxgui.top_block_gui):
# Blocks
##################################################
self.thr = blocks.throttle(gr.sizeof_float*1, samp_rate)
- self.src = gr.vector_source_f(([float(n)-50 for n in range(100)]), True, 1)
+ self.src = blocks.vector_source_f(([float(n)-50 for n in range(100)]), True, 1)
self.sqr = howto.square_ff()
self.sink2 = scopesink2.scope_sink_f(
self.GetWin(),