]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock (gh...
authorTerry Jan Reedy <tjreedy@udel.edu>
Thu, 17 Oct 2024 16:50:07 +0000 (12:50 -0400)
committerGitHub <noreply@github.com>
Thu, 17 Oct 2024 16:50:07 +0000 (12:50 -0400)
commit30d7e9e721e8201bc7fb23f08a7d88d51eed827d
tree9bdd05a381d51b9f51c67b9a915f981aca3e1855
parent7a2db7601abdd002ddb2b8e0f14c728867ef2527
[3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock (gh-123457) (#125653)

[3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock (GH-123457)

Rewriting the day and date every tick somehow prevented them from being removed either by clicking STOP or loading another example.  The solution is to rewrite them only when they change.
(cherry picked from commit c124577ebe915a00de4033c0f7fa7c47621d79e0)

Co-authored-by: Wulian <xiguawulian@gmail.com>
Lib/turtledemo/clock.py
Misc/NEWS.d/next/Library/2024-08-28-19-27-35.gh-issue-123370.SPZ9Ux.rst [new file with mode: 0644]