Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3ec3ee7

Browse filesBrowse files
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>
1 parent 5af56c6 commit 3ec3ee7
Copy full SHA for 3ec3ee7

File tree

Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed

‎Lib/idlelib/autocomplete_w.py

Copy file name to clipboardExpand all lines: Lib/idlelib/autocomplete_w.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def show_window(self, comp_lists, index, complete, mode, userWantsWin):
206206
scrollbar.config(command=listbox.yview)
207207
scrollbar.pack(side=RIGHT, fill=Y)
208208
listbox.pack(side=LEFT, fill=BOTH, expand=True)
209+
acw.update_idletasks() # Need for tk8.6.8 on macOS: #40128.
209210
acw.lift() # work around bug in Tk 8.5.18+ (issue #24570)
210211

211212
# Initialize the listbox selection
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Mostly fix completions on macOS when not using tcl/tk 8.6.11 (as with 3.9).
2+
The added update_idletask call should be harmless and possibly helpful
3+
otherwise.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.