Turtle graphics – How do I control when the window closes? August 5, 2023 by Tarik Just use turtle.done() or turtle.Screen().exitonclick() as a last command of your turtle program.