cpython: 7e79dbceb039 (original) (raw)

Mercurial > cpython

changeset 75601:7e79dbceb039 3.2

Issue #5219: Prevent event handler cascade in IDLE. Patch by Roger Serwy. [#5219]

Martin v. Löwis martin@v.loewis.de
date Tue, 13 Mar 2012 14:32:29 -0700
parents 246e681a4272
children 99be11bd4acc 7bae16233943
files Lib/idlelib/CallTipWindow.py Misc/NEWS
diffstat 2 files changed, 7 insertions(+), 1 deletions(-)[+] [-] Lib/idlelib/CallTipWindow.py 6 Misc/NEWS 2

line wrap: on

line diff

--- 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

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()

def hide_event(self, event): if not self.tipwindow:

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -22,6 +22,8 @@ Core and Builtins Library ------- +- Issue #5219: Prevent event handler cascade in IDLE. +