summaryrefslogtreecommitdiffstats
path: root/Tools/idle/CallTipWindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/idle/CallTipWindow.py')
-rw-r--r--Tools/idle/CallTipWindow.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tools/idle/CallTipWindow.py b/Tools/idle/CallTipWindow.py
index d253fa5..db1e346 100644
--- a/Tools/idle/CallTipWindow.py
+++ b/Tools/idle/CallTipWindow.py
@@ -14,7 +14,13 @@ class CallTip:
self.x = self.y = 0
def showtip(self, text):
+ # SF bug 546078: IDLE calltips cause application error.
+ # There were crashes on various Windows flavors, and even a
+ # crashing X server on Linux, with very long calltips.
+ if len(text) >= 79:
+ text = text[:75] + ' ...'
self.text = text
+
if self.tipwindow or not self.text:
return
self.widget.see("insert")