Turtle graphics - How do I control when the window closes?

前端 未结 5 1621
刺人心
刺人心 2020-12-14 01:01

I have a small python script which draws some turtle graphics. When my script has finished running, the turtle screen automatically closes, so to be able to see the graphics

5条回答
  •  醉梦人生
    2020-12-14 01:29

    Just use turtle.done() or turtle.Screen().exitonclick() as a last command of your turtle program.

提交回复
热议问题