summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/top_block.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/top_block.py')
-rw-r--r--gnuradio-runtime/python/gnuradio/gr/top_block.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/top_block.py b/gnuradio-runtime/python/gnuradio/gr/top_block.py
index e8a18b2d07..9523e4e91d 100644
--- a/gnuradio-runtime/python/gnuradio/gr/top_block.py
+++ b/gnuradio-runtime/python/gnuradio/gr/top_block.py
@@ -10,11 +10,12 @@
from __future__ import absolute_import
from __future__ import unicode_literals
-from .runtime_swig import (top_block_swig,
+from .gr_python import (top_block_pb,
top_block_wait_unlocked, top_block_run_unlocked,
top_block_start_unlocked, top_block_stop_unlocked,
- top_block_unlock_unlocked, dot_graph_tb)
+ top_block_unlock_unlocked) #, dot_graph_tb)
+from .hier_block2 import hier_block2
import threading
from .hier_block2 import hier_block2
@@ -89,7 +90,7 @@ class top_block(hier_block2):
Create a top block with a given name.
"""
# not calling hier_block2.__init__, we set our own _impl
- self._impl = top_block_swig(name, catch_exceptions)
+ self._impl = top_block_pb(name)
self.handle_sigint = True
def start(self, max_noutput_items=10000000):
@@ -123,8 +124,8 @@ class top_block(hier_block2):
"""
_top_block_waiter(self._impl).wait(self.handle_sigint)
- def dot_graph(self):
- """
- Return graph representation in dot language
- """
- return dot_graph_tb(self._impl)
+ # def dot_graph(self):
+ # """
+ # Return graph representation in dot language
+ # """
+ # return dot_graph_tb(self._impl)