MCPcopy Create free account
hub / github.com/ActiveState/code / paintgrafics

Method paintgrafics

recipes/Python/576830_analog_clock/recipe-576830.py:88–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self.paintgrafics()
87
88 def paintgrafics(self):
89 start = -pi/2
90 step = pi/6
91 for i in range(12):
92 angle = start+i*step
93 x, y = cos(angle),sin(angle)
94 self.paintcircle(x,y)
95 self.painthms()
96 self.paintcircle(0,0)
97
98 def painthms(self):
99 T = datetime.timetuple(datetime.utcnow()-self.delta)

Callers 1

redrawMethod · 0.95

Calls 5

paintcircleMethod · 0.95
painthmsMethod · 0.95
rangeFunction · 0.85
cosFunction · 0.85
sinFunction · 0.85

Tested by

no test coverage detected