MCPcopy Index your code
hub / github.com/python/cpython / getshapes

Method getshapes

Lib/turtle.py:1366–1375  ·  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

1364 return self.cv
1365
1366 def getshapes(self):
1367 """Return a list of names of all currently available turtle shapes.
1368
1369 No argument.
1370
1371 Example (for a TurtleScreen instance named screen):
1372 >>> screen.getshapes()
1373 ['arrow', 'blank', 'circle', ... , 'turtle']
1374 """
1375 return sorted(self._shapes.keys())
1376
1377 def onclick(self, fun, btn=1, add=None):
1378 """Bind fun to mouse-click event on canvas.

Callers 1

shapeMethod · 0.80

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected