]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-123370: Fix the canvas not clearing after running turtledemo.clock (#123457)
authorWulian <xiguawulian@gmail.com>
Thu, 17 Oct 2024 15:23:37 +0000 (23:23 +0800)
committerGitHub <noreply@github.com>
Thu, 17 Oct 2024 15:23:37 +0000 (11:23 -0400)
commitc124577ebe915a00de4033c0f7fa7c47621d79e0
tree5a5dd5cca670a96bb15ac33952420340572da890
parent528bbab96feadbfabb798547e5bb2ad52070fb73
gh-123370: Fix the canvas not clearing after running turtledemo.clock (#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.
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]