summaryrefslogtreecommitdiff
path: root/grc/python/Port.py
diff options
context:
space:
mode:
authorJosh Blum2009-08-30 10:34:10 -0700
committerJosh Blum2009-08-30 10:34:10 -0700
commit152fcbc219cd2e4f6df7b38843844bc85fdf2bc2 (patch)
tree5c94998205fb917be6e6c2d443ddf10d613fc0fb /grc/python/Port.py
parentcc13a27310e4ab91ebf90ee2d9cd6e3c659e1bc0 (diff)
downloadgnuradio-152fcbc219cd2e4f6df7b38843844bc85fdf2bc2.tar.gz
gnuradio-152fcbc219cd2e4f6df7b38843844bc85fdf2bc2.tar.bz2
gnuradio-152fcbc219cd2e4f6df7b38843844bc85fdf2bc2.zip
Switched the python classes to inherit from the base and gui classes.
Use only **kwargs so all contructor parameters must be passed with keys. Moved gui input forms classes from base to gui param module.
Diffstat (limited to 'grc/python/Port.py')
-rw-r--r--grc/python/Port.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/grc/python/Port.py b/grc/python/Port.py
index a714844ef..33426d905 100644
--- a/grc/python/Port.py
+++ b/grc/python/Port.py
@@ -18,6 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
"""
from .. base.Port import Port as _Port
+from .. gui.Port import Port as _GUIPort
import Constants
def _get_source_from_virtual_sink_port(vsp):
@@ -49,7 +50,7 @@ def _get_source_from_virtual_source_port(vsp, traversed=[]):
)
except: raise Exception, 'Could not resolve source for virtual source port %s'%vsp
-class Port(_Port):
+class Port(_Port, _GUIPort):
def __init__(self, block, n, dir):
"""
@@ -73,6 +74,7 @@ class Port(_Port):
n=n,
dir=dir,
)
+ _GUIPort.__init__(self)
self._nports = n.find('nports') or ''
self._vlen = n.find('vlen') or ''
self._optional = bool(n.find('optional'))