summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorKaustubh J <kaustubhkj@gmail.com>2021-06-11 22:55:32 (GMT)
committerGitHub <noreply@github.com>2021-06-11 22:55:32 (GMT)
commit3ec3ee7d2e9b45b586e486e429b412d6d0ca530f (patch)
tree162ed4edfa99ffc7e59bed26428cbac8a1bc6e18 /Lib/idlelib
parent5af56c6f2a0d11df37fed7ecaaf321cf6926ba13 (diff)
downloadcpython-3ec3ee7d2e9b45b586e486e429b412d6d0ca530f.zip
cpython-3ec3ee7d2e9b45b586e486e429b412d6d0ca530f.tar.gz
cpython-3ec3ee7d2e9b45b586e486e429b412d6d0ca530f.tar.bz2
bpo-40128: Fix IDLE autocomplete on macOS (GH-26672)
In particular, when running with tk8.6.8, as in PSF 3.9. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/autocomplete_w.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/autocomplete_w.py b/Lib/idlelib/autocomplete_w.py
index 2e3f9c1..13ff60a 100644
--- a/Lib/idlelib/autocomplete_w.py
+++ b/Lib/idlelib/autocomplete_w.py
@@ -206,6 +206,7 @@ class AutoCompleteWindow:
scrollbar.config(command=listbox.yview)
scrollbar.pack(side=RIGHT, fill=Y)
listbox.pack(side=LEFT, fill=BOTH, expand=True)
+ acw.update_idletasks() # Need for tk8.6.8 on macOS: #40128.
acw.lift() # work around bug in Tk 8.5.18+ (issue #24570)
# Initialize the listbox selection