diff options
author | Josh Blum <josh@joshknows.com> | 2009-08-30 09:35:55 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2009-08-30 09:35:55 -0700 |
commit | cc13a27310e4ab91ebf90ee2d9cd6e3c659e1bc0 (patch) | |
tree | 2076dba98317fdfbbe086792d3d07f6a744dc248 /grc/python/Param.py | |
parent | 2b65221a52a980b24e6e0c0e9f2db122c7c8225b (diff) |
port and param types from an overloaded method
Diffstat (limited to 'grc/python/Param.py')
-rw-r--r-- | grc/python/Param.py | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/grc/python/Param.py b/grc/python/Param.py index dd18d1c445..d574b513e1 100644 --- a/grc/python/Param.py +++ b/grc/python/Param.py @@ -83,30 +83,27 @@ COMPLEX_TYPES = tuple(COMPLEX_TYPES + REAL_TYPES + INT_TYPES) REAL_TYPES = tuple(REAL_TYPES + INT_TYPES) INT_TYPES = tuple(INT_TYPES) -##possible param types -TYPES = [ - 'raw', 'enum', - 'complex', 'real', 'int', - 'complex_vector', 'real_vector', 'int_vector', - 'hex', 'string', 'bool', - 'file_open', 'file_save', - 'id', 'stream_id', - 'grid_pos', 'notebook', - 'import', -] - class Param(_Param): - _init = False - _hostage_cells = list() - - def __init__(self, block, n, **kwargs): + def __init__(self, block, n): _Param.__init__( self, block=block, n=n, - types=TYPES, ) + self._init = False + self._hostage_cells = list() + + def get_types(self): return ( + 'raw', 'enum', + 'complex', 'real', 'int', + 'complex_vector', 'real_vector', 'int_vector', + 'hex', 'string', 'bool', + 'file_open', 'file_save', + 'id', 'stream_id', + 'grid_pos', 'notebook', + 'import', + ) def __repr__(self): """ |