Replace widget.update() with widget.update_idletasks in two places.
# 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
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):
--- /dev/null
+Fix IDLE test hang on macOS.