MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / getshapes

Method getshapes

tools/python-3.11.9-amd64/Lib/turtle.py:1339–1348  ·  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

1337 return self.cv
1338
1339 def getshapes(self):
1340 """Return a list of names of all currently available turtle shapes.
1341
1342 No argument.
1343
1344 Example (for a TurtleScreen instance named screen):
1345 >>> screen.getshapes()
1346 ['arrow', 'blank', 'circle', ... , 'turtle']
1347 """
1348 return sorted(self._shapes.keys())
1349
1350 def onclick(self, fun, btn=1, add=None):
1351 """Bind fun to mouse-click event on canvas.

Callers 1

shapeMethod · 0.80

Calls 2

sortedFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected