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

Method begin_poly

Lib/turtle.py:3590–3602  ·  view source on GitHub ↗

Start recording the vertices of a polygon. No argument. Start recording the vertices of a polygon. Current turtle position is first point of polygon. Example (for a Turtle instance named turtle): >>> turtle.begin_poly()

(self)

Source from the content-addressed store, hash-verified

3588 self.end_poly()
3589
3590 def begin_poly(self):
3591 """Start recording the vertices of a polygon.
3592
3593 No argument.
3594
3595 Start recording the vertices of a polygon. Current turtle position
3596 is first point of polygon.
3597
3598 Example (for a Turtle instance named turtle):
3599 >>> turtle.begin_poly()
3600 """
3601 self._poly = [self._position]
3602 self._creatingPoly = True
3603
3604 def end_poly(self):
3605 """Stop recording the vertices of a polygon.

Callers 4

polyMethod · 0.95
test_begin_end_polyMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_begin_end_polyMethod · 0.64