8000 bpo-15786: IDLE: Fix autocomletetion mouse click and freeze behavior by louisom · Pull Request #1517 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-15786: IDLE: Fix autocomletetion mouse click and freeze behavior #1517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Addressed terry suggestion
  • Loading branch information
louisom committed May 11, 2017
commit 1618206efda28072e46c88c90fa7c8a1cffc59e5
9 changes: 5 additions & 4 deletions Lib/idlelib/autocomplete_w.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,11 @@ def winconfig_event(self, event):
self.winconfigid = None

def hide_event(self, event):
# This will be trigger when focus on widget or autocompletewindow
if self.is_active():
if self.widget == self.widget.focus_get() or not self.widget.focus_get():
self.hide_window()
# Hide autocomplete list if it exists and does not have focus
if (self.is_active() and
(self.widget == self.widget.focus_get() or
not self.widget.focus_get())):
self.hide_window()

def listselect_event(self, event):
if self.is_active():
Expand Down
0