PyDocs

Nav

Graphical user interfaces with Tk

get_poly

turtle

function
  • get_poly()
Return the last recorded polygon.
1 Example
>>> turtle.home()
>>> turtle.begin_poly()
>>> turtle.fd(100)
>>> turtle.left(20)
>>> turtle.fd(30)
>>> turtle.left(60)
>>> turtle.fd(50)
>>> turtle.end_poly()
>>> p = turtle.get_poly()
>>> register_shape("myFavouriteShape", p)
from the Python docs
See Also
No see-alsos for turtle/get_poly
0 Notes
No notes for get_poly