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

Method getscreen

Lib/turtle.py:3630–3644  ·  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

3628 return tuple(self._poly)
3629
3630 def getscreen(self):
3631 """Return the TurtleScreen object, the turtle is drawing on.
3632
3633 No argument.
3634
3635 Return the TurtleScreen object, the turtle is drawing on.
3636 So TurtleScreen-methods can be called for that object.
3637
3638 Example (for a Turtle instance named turtle):
3639 >>> ts = turtle.getscreen()
3640 >>> ts
3641 <turtle.TurtleScreen object at 0x0106B770>
3642 >>> ts.bgcolor("pink")
3643 """
3644 return self.screen
3645
3646 def getturtle(self):
3647 """Return the Turtleobject itself.

Callers 8

designMethod · 0.80
wheelMethod · 0.80
tripieceMethod · 0.80
pentpieceMethod · 0.80
mainFunction · 0.80
maketreeFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected