]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45193: Restore IDLE completion boxes on Ubuntu (GH-28343)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Sep 2021 07:37:35 +0000 (00:37 -0700)
committerGitHub <noreply@github.com>
Wed, 15 Sep 2021 07:37:35 +0000 (00:37 -0700)
The line that should not have been needed on macOS tk 8.6.8 but was,
should not be a problem on Ubuntu, but is.  It is not needed on macOS
tk 8.6.11, installed with 3.10.  Disable it but leave it for
now in case some system needs it.
(cherry picked from commit 1afc7b3219b24c951bb4e6b7e1ead904228de074)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/autocomplete_w.py

index 13ff60ae4493e6a1f83d8baaa4a1f855435a46ae..0f835a9cc1d010b29fbb4f21f1d107a90bf6b6f7 100644 (file)
@@ -206,7 +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.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