diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-09-29 07:09:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 07:09:16 (GMT) |
commit | 455b494386678f7f20c0cd43407e689f14afac15 (patch) | |
tree | 2e0e5556bba998d052cd920dc8af745877570508 /Lib | |
parent | e3815d7d6d42925589f4e45ec7dcd4fda6b1dc9c (diff) | |
download | cpython-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.py | 2 | ||||
-rwxr-xr-x | Lib/turtledemo/clock.py | 1 |
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) |