summaryrefslogtreecommitdiff
path: root/grc/python/Port.py
diff options
context:
space:
mode:
authorJohnathan Corgan2012-05-31 17:07:00 -0700
committerJohnathan Corgan2012-05-31 17:07:00 -0700
commit8569580b4ef8c1eccf5bdb81af60787e5b6bb8e9 (patch)
tree9a1ff99b6c7beb1666b24023a42382e5f86a2746 /grc/python/Port.py
parent19fed24f0b915b9a5d78ad73057a50e2e202d780 (diff)
parentb95b3ce4553442a97ce6ed19d907527ac0d90d96 (diff)
downloadgnuradio-8569580b4ef8c1eccf5bdb81af60787e5b6bb8e9.tar.gz
gnuradio-8569580b4ef8c1eccf5bdb81af60787e5b6bb8e9.tar.bz2
gnuradio-8569580b4ef8c1eccf5bdb81af60787e5b6bb8e9.zip
Merge branch 'maint'
Diffstat (limited to 'grc/python/Port.py')
-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: