diff options
author | Marcus Müller <marcus@hostalia.de> | 2020-06-19 11:07:54 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-06-19 11:07:54 +0200 |
commit | e76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch) | |
tree | 1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /gnuradio-runtime/python/gnuradio/gr/top_block.py | |
parent | 98348e37209aa7daeb96fe5ead815e5b083dc6da (diff) | |
parent | 39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (diff) |
Move from SWIG to Pybind11
Goodbye, and thanks for all the fish, SWIG.
Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/top_block.py')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/top_block.py | 17 |
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) |