summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grc/gui/canvas/param.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/grc/gui/canvas/param.py b/grc/gui/canvas/param.py
index 4277bfe665..b612902928 100644
--- a/grc/gui/canvas/param.py
+++ b/grc/gui/canvas/param.py
@@ -67,7 +67,10 @@ class Param(CoreParam):
errors = self.get_error_messages()
tooltip_lines = ['Key: ' + self.key, 'Type: ' + self.dtype]
if self.is_valid():
- value = str(self.get_evaluated())
+ value = self.get_evaluated()
+ if hasattr(value,"__len__"):
+ tooltip_lines.append('Length: {}'.format(len(value)))
+ value = str(value)
if len(value) > 100:
value = '{}...{}'.format(value[:50], value[-50:])
tooltip_lines.append('Value: ' + value)