]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] Rewrite the turtledemo makeGraphFrame method (GH-104224) (#104238)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 6 May 2023 15:31:28 +0000 (08:31 -0700)
committerGitHub <noreply@github.com>
Sat, 6 May 2023 15:31:28 +0000 (15:31 +0000)
commit10ee19b7371e333f1e22c9471b61954485f2268c
tree6d1ca9b38b3c1a4592c5321d7499681b5ef91667
parent4b11af058e9c5df2b737f785a2615676650810f4
[3.11] Rewrite the turtledemo makeGraphFrame method (GH-104224) (#104238)

Rewrite the turtledemo makeGraphFrame method (GH-104224)

Replace `self._canvas` and `self.scanvas`, both bound to `canvas`,
with `self.canvas, which is accessed in other methods.
Replace `_s_` with `screen` and `_s_._canvas` with `canvas`.
Add a comment explaining the unorthodox use of
function turtle.Screen and singleton class turtle._Screen.
(cherry picked from commit 96f95df48e41ccf984de1ee1312c81809fd9e876)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/turtledemo/__main__.py