[Python-checkins] bpo-45193: Restore IDLE completion boxes on Ubuntu (GH-28343)

terryjreedy webhook-mailer at python.org
Wed Sep 15 03:13:31 EDT 2021


https://github.com/python/cpython/commit/1afc7b3219b24c951bb4e6b7e1ead904228de074
commit: 1afc7b3219b24c951bb4e6b7e1ead904228de074
branch: main
author: Terry Jan Reedy <tjreedy at udel.edu>
committer: terryjreedy <tjreedy at udel.edu>
date: 2021-09-15T03:13:23-04:00
summary:

bpo-45193: Restore IDLE completion boxes on Ubuntu (GH-28343)

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.

files:
M Lib/idlelib/autocomplete_w.py

diff --git a/Lib/idlelib/autocomplete_w.py b/Lib/idlelib/autocomplete_w.py
index 13ff60ae4493e..0f835a9cc1d01 100644
--- a/Lib/idlelib/autocomplete_w.py
+++ b/Lib/idlelib/autocomplete_w.py
@@ -206,7 +206,7 @@ def show_window(self, comp_lists, index, complete, mode, userWantsWin):
         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



More information about the Python-checkins mailing list