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

Method end_poly

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

3602 self._creatingPoly = True
3603
3604 def end_poly(self):
3605 """Stop recording the vertices of a polygon.
3606
3607 No argument.
3608
3609 Stop recording the vertices of a polygon. Current turtle position is
3610 last point of polygon. This will be connected with the first point.
3611
3612 Example (for a Turtle instance named turtle):
3613 >>> turtle.end_poly()
3614 """
3615 self._creatingPoly = False
3616
3617 def get_poly(self):
3618 """Return the lastly recorded polygon.

Callers 3

polyMethod · 0.95
test_begin_end_polyMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_begin_end_polyMethod · 0.64