summaryrefslogtreecommitdiff
path: root/grc/python
diff options
context:
space:
mode:
authorJustin R. Cutler2012-05-31 17:02:05 -0700
committerJohnathan Corgan2012-05-31 17:02:26 -0700
commit53dabcddefa202facfd0825fd2171f840a1a47c3 (patch)
treecd94badfecdf72f7349e709b5d3d1bdec988ad82 /grc/python
parent11475bfd79097616b00639e5bfdc567134346566 (diff)
downloadgnuradio-53dabcddefa202facfd0825fd2171f840a1a47c3.tar.gz
gnuradio-53dabcddefa202facfd0825fd2171f840a1a47c3.tar.bz2
gnuradio-53dabcddefa202facfd0825fd2171f840a1a47c3.zip
grc: restore virtual ports in grc
Diffstat (limited to 'grc/python')
-rw-r--r--grc/python/Port.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/grc/python/Port.py b/grc/python/Port.py
index d0ef51b48..9f8b50d05 100644
--- a/grc/python/Port.py
+++ b/grc/python/Port.py
@@ -139,6 +139,10 @@ class Port(_Port, _GUIPort):
self._type = ''
self._vlen = ''
+ def resolve_virtual_source(self):
+ if self.get_parent().is_virtual_sink(): return _get_source_from_virtual_sink_port(self)
+ if self.get_parent().is_virtual_source(): return _get_source_from_virtual_source_port(self)
+
def resolve_empty_type(self):
if self.is_sink():
try: