10000 gh-91212: Fixed flickering when the tracer is turned off (#95129) · python/cpython@4652093 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4652093

Browse files
authored
gh-91212: Fixed flickering when the tracer is turned off (#95129)
Fixed flickering when the tracer is turned off.
1 parent c759944 commit 4652093

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Lib/turtle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,6 @@ def _write(self, pos, txt, align, font, pencolor):
596596
item = self.cv.create_text(x-1, -y, text = txt, anchor = anchor[align],
597597
fill = pencolor, font = font)
598598
x0, y0, x1, y1 = self.cv.bbox(item)
599-
self.cv.update()
600599
return item, x1-1
601600

602601
## def _dot(self, pos, size, color):
@@ -3419,6 +3418,7 @@ def _write(self, txt, align, font):
34193418
"""
34203419
item, end = self.screen._write(self._position, txt, align, font,
34213420
self._pencolor)
3421+
self._update()
34223422
self.items.append(item)
34233423
if self.undobuffer:
34243424
self.undobuffer.push(("wri", item))

Lib/turtledemo/clock.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ def tick():
109109
writer.write(datum(t),
110110
align="center", font=("Courier", 14, "bold"))
111111
writer.forward(85)
112-
tracer(True)
113112
second_hand.setheading(6*sekunde) # or here
114113
minute_hand.setheading(6*minute)
115114
hour_hand.setheading(30*stunde)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed flickering of the turtle window when the tracer is turned off. Patch by Shin-myoung-serp.

0 commit comments

Comments
 (0)
0