summaryrefslogtreecommitdiff
path: root/grc/python/Param.py
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2009-08-29 01:04:58 -0700
committerJosh Blum <josh@joshknows.com>2009-08-29 01:04:58 -0700
commit576d3978c7fafe5d6727c77281e3aad6d92074d2 (patch)
treefde88d38dd92a79571d1960f8e1fb9debd05b903 /grc/python/Param.py
parentcb794a7c8703ea06a9bce110fc1041140f25e8e6 (diff)
Replaced TYPES in Port and Param with types parameter.
Replaced odict in options for storing options with a list. Fix virtual port check in flow graph template.
Diffstat (limited to 'grc/python/Param.py')
-rw-r--r--grc/python/Param.py29
1 files changed, 19 insertions, 10 deletions
diff --git a/grc/python/Param.py b/grc/python/Param.py
index 2ca1d0ec00..dd18d1c445 100644
--- a/grc/python/Param.py
+++ b/grc/python/Param.py
@@ -83,21 +83,30 @@ 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()
- ##possible param types
- TYPES = _Param.TYPES + [
- 'complex', 'real', 'int',
- 'complex_vector', 'real_vector', 'int_vector',
- 'hex', 'string', 'bool',
- 'file_open', 'file_save',
- 'id', 'stream_id',
- 'grid_pos', 'notebook',
- 'import',
- ]
+ def __init__(self, block, n, **kwargs):
+ _Param.__init__(
+ self,
+ block=block,
+ n=n,
+ types=TYPES,
+ )
def __repr__(self):
"""