MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / getcanvas

Method getcanvas

Python/Turtle.py:1225–1235  ·  view source on GitHub ↗

Return the Canvas of this TurtleScreen. No argument. Example (for a Screen instance named screen): >>> cv = screen.getcanvas() >>> cv

(self)

Source from the content-addressed store, hash-verified

1223 return self._window_size()[1]
1224
1225 def getcanvas(self):
1226 """Return the Canvas of this TurtleScreen.
1227
1228 No argument.
1229
1230 Example (for a Screen instance named screen):
1231 >>> cv = screen.getcanvas()
1232 >>> cv
1233 <turtle.ScrolledCanvas instance at 0x010742D8>
1234 """
1235 return self.cv
1236
1237 def getshapes(self):
1238 """Return a list of names of all currently available turtle shapes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected