Python - turtle.done() Last Updated : 20 Jul, 2021 Comments Improve Suggest changes Like Article Like Report The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.done() This function is used to starts event loop - calling Tkinter's main loop function. It does not require any argument. Must be the last statement in a turtle graphics program. Must NOT be used if a script is run from within IDLE in -n mode (No subprocess) - for interactive use of turtle graphics. Syntax : turtle.done() Parameters : None Returns : None Below is the implementation of the above method with some examples : Example 1 : At the end. python3 # import package import turtle # motion turtle.forward(100) turtle.right(90) turtle.forward(100) # stop execution turtle.done() Output : Example 2 : Stop the execution at any step. python3 # import package import turtle # motion turtle.circle(20) turtle.circle(30) # stop execution turtle.done() # motion turtle.circle(40) turtle.circle(50) Output : Comment More infoAdvertise with us Next Article Python - turtle.done() D deepanshu_rustagi Follow Improve Article Tags : Python Python-turtle Practice Tags : python Similar Reads Python - turtle.bye() The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.bye() This function is used to shut the turtle graphics window. It doesn't r 1 min read Python - turtle.clear() The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.clear() This function is used to delete the turtle's drawings from the scree 2 min read turtle.down() method in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.down() The turtle.down() method is used to pull back the pen down on the scr 1 min read Python - turtle.exitonclick() The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.exitonclick() : This function is used to Go into mainloop until the mouse is 2 min read turtle.up() method in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.up() The turtle.up() method is used to pull the pen up from the screen. It g 1 min read Like