gh-91212: Fixed flickering when the tracer is turned off (#95129)

Fixed flickering when the tracer is turned off.
This commit is contained in:
Shin-myoung-serp 2022-09-29 15:40:51 +09:00 committed by GitHub
parent c759944f16
commit 4652093e1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View file

@ -596,7 +596,6 @@ class TurtleScreenBase(object):
item = self.cv.create_text(x-1, -y, text = txt, anchor = anchor[align],
fill = pencolor, font = font)
x0, y0, x1, y1 = self.cv.bbox(item)
self.cv.update()
return item, x1-1
## def _dot(self, pos, size, color):
@ -3419,6 +3418,7 @@ class RawTurtle(TPen, TNavigator):
"""
item, end = self.screen._write(self._position, txt, align, font,
self._pencolor)
self._update()
self.items.append(item)
if self.undobuffer:
self.undobuffer.push(("wri", item))