summaryrefslogtreecommitdiffstats
path: root/Lib/turtle.py
diff options
context:
space:
mode:
authorShin-myoung-serp <relent95@naver.com>2022-09-29 06:40:51 (GMT)
committerGitHub <noreply@github.com>2022-09-29 06:40:51 (GMT)
commit4652093e1b816b78e9a585d671a807ce66427417 (patch)
treeeb1d30ef51d8277066dba5d8d9f19984552cb701 /Lib/turtle.py
parentc759944f16ed9887a77d5ebd738f17f3892c2476 (diff)
downloadcpython-4652093e1b816b78e9a585d671a807ce66427417.zip
cpython-4652093e1b816b78e9a585d671a807ce66427417.tar.gz
cpython-4652093e1b816b78e9a585d671a807ce66427417.tar.bz2
gh-91212: Fixed flickering when the tracer is turned off (#95129)
Fixed flickering when the tracer is turned off.
Diffstat (limited to 'Lib/turtle.py')
-rw-r--r--Lib/turtle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/turtle.py b/Lib/turtle.py
index a8876e7..6abf9f7 100644
--- a/Lib/turtle.py
+++ b/Lib/turtle.py
@@ -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))