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

Method end_poly

Python/Turtle.py:3351–3362  ·  view source on GitHub ↗

Stop recording the vertices of a polygon. No argument. Stop recording the vertices of a polygon. Current turtle position is last point of polygon. This will be connected with the first point. Example (for a Turtle instance named turtle): >>> turtle.end_poly

(self)

Source from the content-addressed store, hash-verified

3349 self._creatingPoly = True
3350
3351 def end_poly(self):
3352 """Stop recording the vertices of a polygon.
3353
3354 No argument.
3355
3356 Stop recording the vertices of a polygon. Current turtle position is
3357 last point of polygon. This will be connected with the first point.
3358
3359 Example (for a Turtle instance named turtle):
3360 >>> turtle.end_poly()
3361 """
3362 self._creatingPoly = False
3363
3364 def get_poly(self):
3365 """Return the lastly recorded polygon.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected