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

Method getscreen

Python/Turtle.py:3377–3391  ·  view source on GitHub ↗

Return the TurtleScreen object, the turtle is drawing on. No argument. Return the TurtleScreen object, the turtle is drawing on. So TurtleScreen-methods can be called for that object. Example (for a Turtle instance named turtle): >>> ts = turtle.getscreen

(self)

Source from the content-addressed store, hash-verified

3375 return tuple(self._poly)
3376
3377 def getscreen(self):
3378 """Return the TurtleScreen object, the turtle is drawing on.
3379
3380 No argument.
3381
3382 Return the TurtleScreen object, the turtle is drawing on.
3383 So TurtleScreen-methods can be called for that object.
3384
3385 Example (for a Turtle instance named turtle):
3386 >>> ts = turtle.getscreen()
3387 >>> ts
3388 <turtle.TurtleScreen object at 0x0106B770>
3389 >>> ts.bgcolor("pink")
3390 """
3391 return self.screen
3392
3393 def getturtle(self):
3394 """Return the Turtleobject itself.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected