diff options
| author | JohnnyNajera <58344607+JohnnyNajera@users.noreply.github.com> | 2019-12-10 00:30:01 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2019-12-10 00:30:01 (GMT) |
| commit | bbc4162bafe018f07bab0b624b37974cc33daad9 (patch) | |
| tree | 99ebb8261ddb5acfa989058b1edab6364b33eac1 /Lib | |
| parent | 232689b40d8fcbbac27c8705607ff482ea5b46f8 (diff) | |
| download | cpython-bbc4162bafe018f07bab0b624b37974cc33daad9.zip cpython-bbc4162bafe018f07bab0b624b37974cc33daad9.tar.gz cpython-bbc4162bafe018f07bab0b624b37974cc33daad9.tar.bz2 | |
bpo-38943: Fix IDLE autocomplete window not always appearing (GH-17416)
This has happened on some versions of Ubuntu.
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/idlelib/NEWS.txt | 3 | ||||
| -rw-r--r-- | Lib/idlelib/autocomplete_w.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 90e7d80..304cf63 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -3,6 +3,9 @@ Released on 2020-10-05? ====================================== +bpo-38943: Fix autocomplete windows not always appearing on some +systems. Patch by Johnny Najera. + bpo-38944: Excape key now closes IDLE completion windows. Patch by Johnny Najera. diff --git a/Lib/idlelib/autocomplete_w.py b/Lib/idlelib/autocomplete_w.py index f20b633..0643c09 100644 --- a/Lib/idlelib/autocomplete_w.py +++ b/Lib/idlelib/autocomplete_w.py @@ -257,6 +257,7 @@ class AutoCompleteWindow: # place acw above current line new_y -= acw_height acw.wm_geometry("+%d+%d" % (new_x, new_y)) + acw.update_idletasks() if platform.system().startswith('Windows'): # See issue 15786. When on Windows platform, Tk will misbehave |
