From 3ec3ee7d2e9b45b586e486e429b412d6d0ca530f Mon Sep 17 00:00:00 2001 From: Kaustubh J Date: Sat, 12 Jun 2021 04:25:32 +0530 Subject: 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 --- Lib/idlelib/autocomplete_w.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/idlelib/autocomplete_w.py') diff --git a/Lib/idlelib/autocomplete_w.py b/Lib/idlelib/autocomplete_w.py index 2e3f9c14a1..13ff60ae44 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 -- cgit v1.2.1