Skip to content
Snippets Groups Projects
Unverified Commit 5e6219b8 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

bpo-41611: IDLE: fix freezing on completion on macOS (GH-26400)


(cherry picked from commit abc4bd5d)

Co-authored-by: default avatarTal Einat <532281+taleinat@users.noreply.github.com>
parent 09696a3e
No related branches found
No related tags found
No related merge requests found
......@@ -247,6 +247,12 @@ def winconfig_event(self, event):
text.see(self.startindex)
x, y, cx, cy = text.bbox(self.startindex)
acw = self.autocompletewindow
if platform.system().startswith('Windows'):
# On Windows an update() call is needed for the completion list
# window to be created, so that we can fetch its width and
# height. However, this is not needed on other platforms (tested
# on Ubuntu and macOS) but at one point began causing freezes on
# macOS. See issues 37849 and 41611.
acw.update()
acw_width, acw_height = acw.winfo_width(), acw.winfo_height()
text_width, text_height = text.winfo_width(), text.winfo_height()
......
Fix IDLE sometimes freezing upon tab-completion on macOS.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment