diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-03-13 21:32:29 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-03-13 21:32:29 (GMT) |
commit | eb945a938dd4784c30f549b0d7224c45b32ce356 (patch) | |
tree | 6cd2edd689b52679d3bc000de0923fd2a0d3ef01 | |
parent | 7ca97d5208e37690f43045d5f89098f42d88fd0f (diff) | |
download | cpython-eb945a938dd4784c30f549b0d7224c45b32ce356.zip cpython-eb945a938dd4784c30f549b0d7224c45b32ce356.tar.gz cpython-eb945a938dd4784c30f549b0d7224c45b32ce356.tar.bz2 |
Issue #5219: Prevent event handler cascade in IDLE.
Patch by Roger Serwy.
-rw-r--r-- | Lib/idlelib/CallTipWindow.py | 6 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 7 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: @@ -22,6 +22,8 @@ Core and Builtins Library ------- +- Issue #5219: Prevent event handler cascade in IDLE. + - Issue #14184: Increase the default stack size for secondary threads on Mac OS X to avoid interpreter crashes when using threads on 10.7. |