Skip to content

Commit

Permalink
pythongh-112938: IDLE - revert '_idletasks' addition in outwin
Browse files Browse the repository at this point in the history
pythongh-88496 replaced text.update with text.update_idletasks
in two files to fix test failures on macOS.  While
theoretically correct, the result was Shell freezing when
receiving continuous short strings to print.

The guess is that there was no idle time in which to do
the screen update.  Reverting the change in one of the files,
outwin, fixes the issue.

The test will be patched as needed on macOS.
  • Loading branch information
terryjreedy committed Sep 22, 2024
1 parent 342e654 commit 747947f
Showing 1 changed file with 1 addition and 1 deletion.
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_idletasks()
self.text.update()
return len(s)

def writelines(self, lines):
Expand Down

0 comments on commit 747947f

Please sign in to comment.