[issue15786] IDLE code completion window can hang or misbehave with mouse

Terry J. Reedy report at bugs.python.org
Wed Jul 20 22:54:50 EDT 2016


Terry J. Reedy added the comment:

Serhiy, could you take at least a quick look at this troublesome issue?  The issue seems to be this: idlelib.autocomplete_w.py has

# at the top
LISTUPDATE_SEQUENCE = "<B1-ButtonRelease>"

# within show_window method
        self.listupdateid = listbox.bind(LISTUPDATE_SEQUENCE,
                                         self.listselect_event)
# and later
    def listselect_event(self, event):

However, when one clicks on a completion box, the click is only seen by the text window underneath, and the box disappears.  On Mac, there are also nasty symptoms like IDLE freezing.  I that changing the sequence to '<Button-1>' and addint 'return "break"' to the end of listselect_event might solve the problem.  When it did not, I added prints to the top of __init__ and listselect_event.  Running in the console, the first printed, the second did not.  Do you have any idea why not?

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15786>
_______________________________________


More information about the Python-bugs-list mailing list