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

Function setup

Lib/turtledemo/clock.py:64–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 writer.forward(distance=85)
63
64def setup():
65 global second_hand, minute_hand, hour_hand, writer
66 mode("logo")
67 make_hand_shape("second_hand", 125, 25)
68 make_hand_shape("minute_hand", 115, 25)
69 make_hand_shape("hour_hand", 90, 25)
70 clockface(160)
71 second_hand = Turtle()
72 second_hand.shape("second_hand")
73 second_hand.color("gray20", "gray80")
74 minute_hand = Turtle()
75 minute_hand.shape("minute_hand")
76 minute_hand.color("blue1", "red1")
77 hour_hand = Turtle()
78 hour_hand.shape("hour_hand")
79 hour_hand.color("blue3", "red3")
80 for hand in second_hand, minute_hand, hour_hand:
81 hand.resizemode("user")
82 hand.shapesize(1, 1, 3)
83 hand.speed(0)
84 ht()
85 writer = Turtle()
86 writer.ht()
87 writer.pu()
88 writer.bk(85)
89 display_date_time()
90
91def wochentag(t):
92 wochentag = ["Monday", "Tuesday", "Wednesday",

Callers 5

mainFunction · 0.70
testReplaceWholeTextMethod · 0.50
setup.pyFile · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 11

modeFunction · 0.85
make_hand_shapeFunction · 0.85
clockfaceFunction · 0.85
TurtleClass · 0.85
display_date_timeFunction · 0.85
shapeMethod · 0.80
resizemodeMethod · 0.80
shapesizeMethod · 0.80
htFunction · 0.50
colorMethod · 0.45
speedMethod · 0.45

Tested by 1

testReplaceWholeTextMethod · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…