MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / setup

Function setup

tools/python-3.11.9-amd64/Lib/turtledemo/clock.py:56–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 rt(6)
55
56def setup():
57 global second_hand, minute_hand, hour_hand, writer
58 mode("logo")
59 make_hand_shape("second_hand", 125, 25)
60 make_hand_shape("minute_hand", 130, 25)
61 make_hand_shape("hour_hand", 90, 25)
62 clockface(160)
63 second_hand = Turtle()
64 second_hand.shape("second_hand")
65 second_hand.color("gray20", "gray80")
66 minute_hand = Turtle()
67 minute_hand.shape("minute_hand")
68 minute_hand.color("blue1", "red1")
69 hour_hand = Turtle()
70 hour_hand.shape("hour_hand")
71 hour_hand.color("blue3", "red3")
72 for hand in second_hand, minute_hand, hour_hand:
73 hand.resizemode("user")
74 hand.shapesize(1, 1, 3)
75 hand.speed(0)
76 ht()
77 writer = Turtle()
78 #writer.mode("logo")
79 writer.ht()
80 writer.pu()
81 writer.bk(85)
82
83def wochentag(t):
84 wochentag = ["Monday", "Tuesday", "Wednesday",

Callers 1

mainFunction · 0.70

Calls 9

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

Tested by

no test coverage detected