Skip to content

Commit

Permalink
gh-91212: Fixed flickering when the tracer is turned off (#95129)
Browse files Browse the repository at this point in the history
Fixed flickering when the tracer is turned off.
  • Loading branch information
relent95 authored Sep 29, 2022
1 parent c759944 commit 4652093
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,6 @@ def _write(self, pos, txt, align, font, pencolor):
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):
Expand Down Expand Up @@ -3419,6 +3418,7 @@ def _write(self, txt, align, font):
"""
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))
Expand Down
1 change: 0 additions & 1 deletion Lib/turtledemo/clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed flickering of the turtle window when the tracer is turned off. Patch by Shin-myoung-serp.

0 comments on commit 4652093

Please sign in to comment.