summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core/src/python')
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/__init__.py2
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/gateway.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/__init__.py b/gnuradio-core/src/python/gnuradio/gr/__init__.py
index d88c1b842..66d57f77a 100644
--- a/gnuradio-core/src/python/gnuradio/gr/__init__.py
+++ b/gnuradio-core/src/python/gnuradio/gr/__init__.py
@@ -28,7 +28,7 @@ from gnuradio_core import *
from exceptions import *
#from hier_block2 import *
#from top_block import *
-#from gateway import basic_block, sync_block, decim_block, interp_block
+from gateway import basic_block, sync_block, decim_block, interp_block
from gras import HierBlock as hier_block2
from gras import TopBlock as top_block
diff --git a/gnuradio-core/src/python/gnuradio/gr/gateway.py b/gnuradio-core/src/python/gnuradio/gr/gateway.py
index 244b8b592..ad99804d1 100644
--- a/gnuradio-core/src/python/gnuradio/gr/gateway.py
+++ b/gnuradio-core/src/python/gnuradio/gr/gateway.py
@@ -97,6 +97,9 @@ class gateway_block(object):
setattr(self, attr.replace(prefix, ''), getattr(self.__gateway, attr))
self.pop_msg_queue = lambda: gr_core.gr_block_gw_pop_msg_queue_safe(self.__gateway)
+ #gras version of the to_basic_block()
+ def shared_to_element(self): return self.__gateway.shared_to_element()
+
def to_basic_block(self):
"""
Makes this block connectable by hier/top block python