src/eric7/Debugger/VariablesViewer.py

branch
eric7
changeset 9930
4d82d809e816
parent 9653
e67609152c5e
child 10065
de4ae767b0e3
diff -r 4a81ccaa7c7f -r 4d82d809e816 src/eric7/Debugger/VariablesViewer.py
--- a/src/eric7/Debugger/VariablesViewer.py	Tue Mar 21 18:07:27 2023 +0100
+++ b/src/eric7/Debugger/VariablesViewer.py	Thu Mar 23 20:51:13 2023 +0100
@@ -148,7 +148,13 @@
                 self.value = VariableItem.noOfItemsStr.format(length_code)
 
         if dtype != "str":
-            self.valueShort = self.value
+            if len(self.value) > 256:
+                self.valueShort = QCoreApplication.translate(
+                    "VariableItem", "<double click to show value>"
+                )
+            else:
+                self.valueShort = self.value[:256]
+
             self.tooltip = str(self.value)[:256]
             return
 

eric ide

mercurial