mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
gh-91212: Fixed flickering when the tracer is turned off (GH-95129)
Fixed flickering when the tracer is turned off.
(cherry picked from commit 4652093e1b
)
Co-authored-by: Shin-myoung-serp <relent95@naver.com>
This commit is contained in:
parent
e3815d7d6d
commit
455b494386
3 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue