MCPcopy Index your code
hub / github.com/python/cpython / isvisible

Method isvisible

Lib/turtle.py:2408–2418  ·  view source on GitHub ↗

Return True if the Turtle is shown, False if it's hidden. No argument. Example (for a Turtle instance named turtle): >>> turtle.hideturtle() >>> print(turtle.isvisible()) False

(self)

Source from the content-addressed store, hash-verified

2406 self.pen(shown=False)
2407
2408 def isvisible(self):
2409 """Return True if the Turtle is shown, False if it's hidden.
2410
2411 No argument.
2412
2413 Example (for a Turtle instance named turtle):
2414 >>> turtle.hideturtle()
2415 >>> print(turtle.isvisible())
2416 False
2417 """
2418 return self._shown
2419
2420 def pen(self, pen=None, **pendict):
2421 """Return or set the pen's attributes.

Calls

no outgoing calls