diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-06-15 20:49:34 -0700 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-07-13 16:33:28 +0200 |
commit | 03c3d3f030b9dc20a005a00668ca6aa69cb75de0 (patch) | |
tree | 019c77987920b02e3a06683d3cb37eade25704e8 /grc/gui/Param.py | |
parent | 5f4d39e233e041b8a2f5006439a636a49d6e56ea (diff) |
grc-refactor: Block: remove key getters
Diffstat (limited to 'grc/gui/Param.py')
-rw-r--r-- | grc/gui/Param.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/gui/Param.py b/grc/gui/Param.py index a630f5faa3..c888b9ebc0 100644 --- a/grc/gui/Param.py +++ b/grc/gui/Param.py @@ -66,7 +66,7 @@ class Param(Element, _Param): # fixme: using non-public attribute here has_callback = \ hasattr(block, 'get_callbacks') and \ - any(self.get_key() in callback for callback in block._callbacks) + any(self.key in callback for callback in block._callbacks) return '<span underline="{line}" foreground="{color}" font_desc="Sans 9">{label}</span>'.format( line='low' if has_callback else 'none', @@ -78,7 +78,7 @@ class Param(Element, _Param): def format_tooltip_text(self): errors = self.get_error_messages() - tooltip_lines = ['Key: ' + self.get_key(), 'Type: ' + self.get_type()] + tooltip_lines = ['Key: ' + self.key, 'Type: ' + self.get_type()] if self.is_valid(): value = str(self.get_evaluated()) if len(value) > 100: |