summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-09-29 07:09:16 (GMT)
committerGitHub <noreply@github.com>2022-09-29 07:09:16 (GMT)
commit455b494386678f7f20c0cd43407e689f14afac15 (patch)
tree2e0e5556bba998d052cd920dc8af745877570508 /Lib
parente3815d7d6d42925589f4e45ec7dcd4fda6b1dc9c (diff)
downloadcpython-455b494386678f7f20c0cd43407e689f14afac15.zip
cpython-455b494386678f7f20c0cd43407e689f14afac15.tar.gz
cpython-455b494386678f7f20c0cd43407e689f14afac15.tar.bz2
gh-91212: Fixed flickering when the tracer is turned off (GH-95129)
Fixed flickering when the tracer is turned off. (cherry picked from commit 4652093e1b816b78e9a585d671a807ce66427417) Co-authored-by: Shin-myoung-serp <relent95@naver.com>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/turtle.py2
-rwxr-xr-xLib/turtledemo/clock.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/Lib/turtle.py b/Lib/turtle.py
index f3b320b..1127283 100644
--- a/Lib/turtle.py
+++ b/Lib/turtle.py
@@ -595,7 +595,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):
@@ -3403,6 +3402,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))
diff --git a/Lib/turtledemo/clock.py b/Lib/turtledemo/clock.py
index 62c8851..9f8585b 100755
--- a/Lib/turtledemo/clock.py
+++ b/Lib/turtledemo/clock.py
@@ -109,7 +109,6 @@ def tick():
writer.write(datum(t),
align="center", font=("Courier", 14, "bold"))
writer.forward(85)
- tracer(True)
second_hand.setheading(6*sekunde) # or here
minute_hand.setheading(6*minute)
hour_hand.setheading(30*stunde)