Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4168177

Browse files
committed
gh-88496: IDLE - fix test hangs on MacOS
Replace widget.update() with widget.update_idletasks in two places.
1 parent c986412 commit 4168177

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/idlelib/colorizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def recolorize_main(self):
310310
# crumb telling the next invocation to resume here
311311
# in case update tells us to leave.
312312
self.tag_add("TODO", next)
313-
self.update()
313+
self.update_idletasks()
314314
if self.stop_colorizing:
315315
if DEBUG: print("colorizing stopped")
316316
return

Lib/idlelib/outwin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def write(self, s, tags=(), mark="insert"):
112112
assert isinstance(s, str)
113113
self.text.insert(mark, s, tags)
114114
self.text.see(mark)
115-
self.text.update()
115+
self.text.update_idletasks()
116116
return len(s)
117117

118118
def writelines(self, lines):

0 commit comments

Comments
 (0)