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

Method getshapes

Python/Turtle.py:1237–1246  ·  view source on GitHub ↗

Return a list of names of all currently available turtle shapes. No argument. Example (for a TurtleScreen instance named screen): >>> screen.getshapes() ['arrow', 'blank', 'circle', ... , 'turtle']

(self)

Source from the content-addressed store, hash-verified

1235 return self.cv
1236
1237 def getshapes(self):
1238 """Return a list of names of all currently available turtle shapes.
1239
1240 No argument.
1241
1242 Example (for a TurtleScreen instance named screen):
1243 >>> screen.getshapes()
1244 ['arrow', 'blank', 'circle', ... , 'turtle']
1245 """
1246 return sorted(self._shapes.keys())
1247
1248 def onclick(self, fun, btn=1, add=None):
1249 """Bind fun to mouse-click event on canvas.

Callers 1

shapeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected