summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-06-11 23:24:16 (GMT)
committerGitHub <noreply@github.com>2021-06-11 23:24:16 (GMT)
commitb441e99d89a3f05210cc36ade57699384986ca00 (patch)
tree5690f5dffc6d3e00ded2facda1e8cc0eba29fb65
parent42612db10792dd069149063f67a3b1db700bc7ee (diff)
downloadcpython-b441e99d89a3f05210cc36ade57699384986ca00.zip
cpython-b441e99d89a3f05210cc36ade57699384986ca00.tar.gz
cpython-b441e99d89a3f05210cc36ade57699384986ca00.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> (cherry picked from commit 3ec3ee7d2e9b45b586e486e429b412d6d0ca530f) Co-authored-by: Kaustubh J <kaustubhkj@gmail.com>
-rw-r--r--Lib/idlelib/autocomplete_w.py1
-rw-r--r--Misc/NEWS.d/next/IDLE/2021-06-11-17-43-39.bpo-40128.7vDN3U.rst3
2 files changed, 4 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
diff --git a/Misc/NEWS.d/next/IDLE/2021-06-11-17-43-39.bpo-40128.7vDN3U.rst b/Misc/NEWS.d/next/IDLE/2021-06-11-17-43-39.bpo-40128.7vDN3U.rst
new file mode 100644
index 0000000..dafbe2c
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2021-06-11-17-43-39.bpo-40128.7vDN3U.rst
@@ -0,0 +1,3 @@
+Mostly fix completions on macOS when not using tcl/tk 8.6.11 (as with 3.9).
+The added update_idletask call should be harmless and possibly helpful
+otherwise.