]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Rewrite the turtledemo makeGraphFrame method (#104224)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 6 May 2023 15:09:08 +0000 (11:09 -0400)
committerGitHub <noreply@github.com>
Sat, 6 May 2023 15:09:08 +0000 (11:09 -0400)
commit96f95df48e41ccf984de1ee1312c81809fd9e876
tree64b352aa5fd50c36b12b59a67ca6c2330539aad9
parente407661e7a70ad49a69df3058634bc4fccebbcd6
Rewrite the turtledemo makeGraphFrame method (#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.
Lib/turtledemo/__main__.py