summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/hier/digital/transmit_path_lb.py
diff options
context:
space:
mode:
authorjcorgan2007-04-28 02:20:28 +0000
committerjcorgan2007-04-28 02:20:28 +0000
commitb26ea69676c09f5366a9e2f33b11ae5a7521ffe5 (patch)
tree0641c1c25d6e827f70941e07f4611d0a2b6b83cd /gnuradio-examples/python/hier/digital/transmit_path_lb.py
parent00696b9f754338de9362932c1ecfb1e144a38786 (diff)
downloadgnuradio-b26ea69676c09f5366a9e2f33b11ae5a7521ffe5.tar.gz
gnuradio-b26ea69676c09f5366a9e2f33b11ae5a7521ffe5.tar.bz2
gnuradio-b26ea69676c09f5366a9e2f33b11ae5a7521ffe5.zip
Merged -r 5137:5174 from developer branch jcorgan/hb. Trunk passes distcheck. Converts gr.hier_block2 API to not use 'define_component' methodology anymore.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5177 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/hier/digital/transmit_path_lb.py')
-rw-r--r--gnuradio-examples/python/hier/digital/transmit_path_lb.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/gnuradio-examples/python/hier/digital/transmit_path_lb.py b/gnuradio-examples/python/hier/digital/transmit_path_lb.py
index 7bf4b6057..424eafdee 100644
--- a/gnuradio-examples/python/hier/digital/transmit_path_lb.py
+++ b/gnuradio-examples/python/hier/digital/transmit_path_lb.py
@@ -1,5 +1,5 @@
#
-# Copyright 2005,2006 Free Software Foundation, Inc.
+# Copyright 2005,2006,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -65,13 +65,8 @@ class transmit_path(gr.hier_block2):
if self._verbose:
self._print_verbage()
- # Define the components
- self.define_component("packet_transmitter", self.packet_transmitter)
- self.define_component("amp", self.amp)
-
- # Connect components in the flowgraph; set amp component to the output of this block
- self.connect("packet_transmitter", 0, "amp", 0)
- self.connect("amp", 0, "self", 0)
+ # Connect blocks in the flowgraph; set amp component to the output of this block
+ self.connect(self.packet_transmitter, self.amp, self)
def set_tx_amplitude(self, ampl):
"""