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

Class Turtle

Lib/turtle.py:3945–3963  ·  view source on GitHub ↗

RawTurtle auto-creating (scrolled) canvas. When a Turtle object is created or a function derived from some Turtle method is called a TurtleScreen object is automatically created.

Source from the content-addressed store, hash-verified

3943 exit(0)
3944
3945class Turtle(RawTurtle):
3946 """RawTurtle auto-creating (scrolled) canvas.
3947
3948 When a Turtle object is created or a function derived from some
3949 Turtle method is called a TurtleScreen object is automatically created.
3950 """
3951 _pen = None
3952 _screen = None
3953
3954 def __init__(self,
3955 shape=_CFG["shape"],
3956 undobuffersize=_CFG["undobuffersize"],
3957 visible=_CFG["visible"]):
3958 if Turtle._screen is None:
3959 Turtle._screen = Screen()
3960 RawTurtle.__init__(self, Turtle._screen,
3961 shape=shape,
3962 undobuffersize=undobuffersize,
3963 visible=visible)
3964
3965Pen = Turtle
3966

Callers 7

mainFunction · 0.90
mainFunction · 0.90
maketreeFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
demo2Function · 0.85
setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…