MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / isvisible

Method isvisible

Python/Turtle.py:2223–2233  ·  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

2221 self.pen(shown=False)
2222
2223 def isvisible(self):
2224 """Return True if the Turtle is shown, False if it's hidden.
2225
2226 No argument.
2227
2228 Example (for a Turtle instance named turtle):
2229 >>> turtle.hideturtle()
2230 >>> print turtle.isvisible():
2231 False
2232 """
2233 return self._shown
2234
2235 def pen(self, pen=None, **pendict):
2236 """Return or set the pen's attributes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected