You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
turtle.write() causes flickering when the tracer is turned off. #91212
3.10 (EOL)end of life3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2022-03-18.09:27:33.522>labels= ['type-bug', 'library', '3.9', '3.10', '3.11']
title='turtle.write() causes flickering when the tracer is turned off.'updated_at=<Date2022-03-21.07:02:30.149>user='https://github.com/relent95'
When implementing an animation with turtle, usually the tracer is turned off via turtle.tracer(0, 0) and turtle.update() is called manually.
When the tracer is off, most of drawing functions skips update() calls on the underlying Canvas. But turtle.write() does not do that.
(See the implementation of TurtleScreenBase._write().)
This causes flickering, as can be seen when you run the attached script. (Press space key to hide/show texts.)
On Win10, running 3.11.0a5+ from command line, upper ABC and boxes flicker when strings are displayed. (When run with from IDLE editor, there is no flicker except sometimes when moving mouse over or off title bar buttons.) (3.8 only gets security fixes.)
3.10 (EOL)end of life3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
Activity
relent95 commentedon Mar 18, 2022
When implementing an animation with turtle, usually the tracer is turned off via turtle.tracer(0, 0) and turtle.update() is called manually.
When the tracer is off, most of drawing functions skips update() calls on the underlying Canvas. But turtle.write() does not do that.
(See the implementation of TurtleScreenBase._write().)
This causes flickering, as can be seen when you run the attached script. (Press space key to hide/show texts.)
terryjreedy commentedon Mar 19, 2022
On Win10, running 3.11.0a5+ from command line, upper ABC and boxes flicker when strings are displayed. (When run with from IDLE editor, there is no flicker except sometimes when moving mouse over or off title bar buttons.) (3.8 only gets security fixes.)
relent95 commentedon Mar 21, 2022
I tested on Ubuntu 20.04 with the following Python versions.
Both cases cause flickering.
Issue python#91212: Fixed flickering when the tracer is turned off
relent95 commentedon Aug 23, 2022
Anyone can review the above PR?
pythongh-91212: Fixed flickering when the tracer is turned off (pytho…
gh-91212: Fixed flickering when the tracer is turned off (#95129)
pythongh-91212: Fixed flickering when the tracer is turned off (pytho…
gh-91212: Fixed flickering when the tracer is turned off (GH-95129)
gh-91212: Fixed flickering when the tracer is turned off (GH-95129)
gpshead commentedon Sep 29, 2022
thanks!