Python - turtle.bye() Last Updated : 17 Aug, 2020 Summarize Comments Improve Suggest changes Share 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.bye() This function is used to shut the turtle graphics window. It doesn't require any argument. Syntax : turtle.bye() Parameters : None Returns : Nothing Below is the implementation of above method with some examples : Example 1: python3 # import package import turtle # set turtle speed to # slowest for better # understandings turtle.speed(1) # motion turtle.forward(200) # use bye() method to # shut the window turtle.bye() Output : Example 2 : python3 # import package import turtle # set drawing turtle speed turtle.speed(10) # loop for pattern for i in range(12): turtle.circle(50) turtle.right(30) # As simply use of bye() here will shut the # turtle graphics window too fast so use # loops to pass the time for i in range(2000): for j in range(500): pass # shut the turtle graphics window turtle.bye() Output : Comment More infoAdvertise with us Next Article Python - turtle.bye() D deepanshu_rustagi Follow Improve Article Tags : Python Python-turtle Practice Tags : python Similar Reads Python - turtle.done() 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 l 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 Python - turtle.delay() method Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon in 1967. The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented w 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