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

Function main

Lib/turtledemo/rosette.py:34–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 t.fd(sz)
33
34def main():
35 s = Screen()
36 s.bgcolor("black")
37 p=Turtle()
38 p.speed(0)
39 p.hideturtle()
40 p.pencolor("red")
41 p.pensize(3)
42
43 s.tracer(36,0)
44
45 at = clock()
46 mn_eck(p, 36, 19)
47 et = clock()
48 z1 = et-at
49
50 sleep(1)
51
52 at = clock()
53 while any(t.undobufferentries() for t in s.turtles()):
54 for t in s.turtles():
55 t.undo()
56 et = clock()
57 return "runtime: %.3f sec" % (z1+et-at)
58
59
60if __name__ == '__main__':

Callers 1

rosette.pyFile · 0.70

Calls 14

ScreenFunction · 0.90
TurtleClass · 0.90
mn_eckFunction · 0.85
sleepFunction · 0.85
bgcolorMethod · 0.80
hideturtleMethod · 0.80
pencolorMethod · 0.80
pensizeMethod · 0.80
undobufferentriesMethod · 0.80
turtlesMethod · 0.80
anyFunction · 0.50
speedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…