Skip to content

Commit

Permalink
pythongh-88496: IDLE - fix test hangs on MacOS
Browse files Browse the repository at this point in the history
Replace widget.update() with widget.update_idletasks in two places.
  • Loading branch information
terryjreedy committed Apr 26, 2023
1 parent c986412 commit 4168177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/idlelib/colorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def recolorize_main(self):
# crumb telling the next invocation to resume here
# in case update tells us to leave.
self.tag_add("TODO", next)
self.update()
self.update_idletasks()
if self.stop_colorizing:
if DEBUG: print("colorizing stopped")
return
Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/outwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def write(self, s, tags=(), mark="insert"):
assert isinstance(s, str)
self.text.insert(mark, s, tags)
self.text.see(mark)
self.text.update()
self.text.update_idletasks()
return len(s)

def writelines(self, lines):
Expand Down

0 comments on commit 4168177

Please sign in to comment.