summaryrefslogtreecommitdiff
path: root/grc/base/Param.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2014-03-14 21:20:32 +0100
committerSebastian Koslowski <koslowski@kit.edu>2014-03-15 13:42:12 +0100
commit8fc80149c385d36e8eb44c7ccf5f05649aaed335 (patch)
tree388255249fba4fd671a5cfd6e61261744546f196 /grc/base/Param.py
parent69dcaa75b629af4ebc465a073f54af84b7c75a11 (diff)
grc: tabbed PropsDialog
Diffstat (limited to 'grc/base/Param.py')
-rw-r--r--grc/base/Param.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/grc/base/Param.py b/grc/base/Param.py
index 8b8362ac1a..f8bfe0d256 100644
--- a/grc/base/Param.py
+++ b/grc/base/Param.py
@@ -74,6 +74,9 @@ class Param(Element):
value = n.find('value') or ''
self._type = n.find('type')
self._hide = n.find('hide') or ''
+ self._tab_label = n.find('tab') or block.get_param_tab_labels()[0]
+ if not self._tab_label in block.get_param_tab_labels():
+ block.get_param_tab_labels().append(self._tab_label)
#build the param
Element.__init__(self, block)
#create the Option objects from the n data
@@ -143,6 +146,7 @@ class Param(Element):
def set_value(self, value): self._value = str(value) #must be a string
def get_type(self): return self.get_parent().resolve_dependencies(self._type)
+ def get_tab_label(self): return self._tab_label
def is_enum(self): return self._type == 'enum'
def __repr__(self):