summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/CallTipWindow.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-03-13 21:46:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-03-13 21:46:09 (GMT)
commit0442f56c4ac0982ae61ea73f8b3341d2a08f511a (patch)
tree52622bfaae4baf1221d6f569cbc7df23e9dff509 /Lib/idlelib/CallTipWindow.py
parent7d74b70e51436a3fab3c3eb35bab6566b60b65eb (diff)
parentf423a796856f23c1b2fb0e1a6ef9ee217df81fd1 (diff)
downloadcpython-0442f56c4ac0982ae61ea73f8b3341d2a08f511a.zip
cpython-0442f56c4ac0982ae61ea73f8b3341d2a08f511a.tar.gz
cpython-0442f56c4ac0982ae61ea73f8b3341d2a08f511a.tar.bz2
merge heads
Diffstat (limited to 'Lib/idlelib/CallTipWindow.py')
-rw-r--r--Lib/idlelib/CallTipWindow.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/idlelib/CallTipWindow.py b/Lib/idlelib/CallTipWindow.py
index 27ed085..a2431f8 100644
--- a/Lib/idlelib/CallTipWindow.py
+++ b/Lib/idlelib/CallTipWindow.py
@@ -22,6 +22,7 @@ class CallTip:
self.parenline = self.parencol = None
self.lastline = None
self.hideid = self.checkhideid = None
+ self.checkhide_after_id = None
def position_window(self):
"""Check if needs to reposition the window, and if so - do it."""
@@ -102,7 +103,10 @@ class CallTip:
self.hidetip()
else:
self.position_window()
- self.widget.after(CHECKHIDE_TIME, self.checkhide_event)
+ if self.checkhide_after_id is not None:
+ self.widget.after_cancel(self.checkhide_after_id)
+ self.checkhide_after_id = \
+ self.widget.after(CHECKHIDE_TIME, self.checkhide_event)
def hide_event(self, event):
if not self.tipwindow: