C.11 Miscellaneous
turtles() Return a list of all the turtles on the screen.
done() static method to stop turtle activity. ex: turtle.done()
clearscreen() Delete all drawing and all turtles from the screen. The screen is set to a white background, there are no event bindings, and tracing is on.
resetscreen() Reset all turtles on the screen to their initial positions.
screensize(canvwidth=None, canvheight=None, bg=None) Resize the drawing canvas to canvwidth and canvheight. Does not resize the window; just adds scroll bars for viewing areas not in original drawing area. If no arguments are given, returns the current width and height.
bye() Close the turtle graphics window.
exitonclick() Wait for a mouse click inside the window, then close and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access