summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/hier_block2.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/hier_block2.py')
-rw-r--r--gnuradio-runtime/python/gnuradio/gr/hier_block2.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/hier_block2.py b/gnuradio-runtime/python/gnuradio/gr/hier_block2.py
index a254a58c72..d7cea3a9a3 100644
--- a/gnuradio-runtime/python/gnuradio/gr/hier_block2.py
+++ b/gnuradio-runtime/python/gnuradio/gr/hier_block2.py
@@ -19,7 +19,7 @@
# Boston, MA 02110-1301, USA.
#
-from runtime_swig import hier_block2_swig
+from runtime_swig import hier_block2_swig, dot_graph
import pmt
#
@@ -126,3 +126,7 @@ class hier_block2(object):
def message_port_register_hier_out(self, portname):
self.primitive_message_port_register_hier_out(pmt.intern(portname));
+ def dot_graph(self):
+ '''Return graph representation in dot language'''
+ return dot_graph(self._hb)
+