turtle.isvisible() function in Python
Last Updated :
21 Jul, 2020
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.isvisible()
The turtle.isvisible() method is used to return True if the Turtle is shown, False if it’s hidden. This method does not require any argument.
Syntax :
turtle.isvisible()
Below is the implementation of above method for better understandings :
Example 1:
Python3
import turtle
print (turtle.isvisible())
turtle.forward( 100 )
turtle.right( 90 )
turtle.ht()
turtle.forward( 100 )
print (turtle.isvisible())
turtle.right( 90 )
turtle.forward( 100 )
turtle.st()
print (turtle.isvisible())
|
Output :
True
False
True
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...