]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] [3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 17 Oct 2024 17:09:05 +0000 (19:09 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Oct 2024 17:09:05 +0000 (17:09 +0000)
commit5e62d9bd54b5657b7e50da9966e4cbc6ed3b520b
tree87ecc7ce22a552fa4ba3ea0b4c4e3e36f279336e
parentdc0a1763218f251d286912a6736b27c9ea887668
[3.12] [3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock (gh-123457) (GH-125653) (#125656)

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)

(cherry picked from commit 30d7e9e721e8201bc7fb23f08a7d88d51eed827d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
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]