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

Method paintcircle

recipes/Python/578875_Analog_Clock/recipe-578875.py:237–240  ·  view source on GitHub ↗
(self,x,y)

Source from the content-addressed store, hash-verified

235 # @param x,y given point.
236 #
237 def paintcircle(self,x,y):
238 ss = self.circlesize / 2.0
239 sco = self.canvas.create_oval
240 sco(self.T.windowToViewport(-ss+x,-ss+y,ss+x,ss+y), fill = self.circlecolor)
241
242 ## Animates the clock, by redrawing everything after a certain time interval.
243 #

Callers 1

redrawMethod · 0.95

Calls 1

windowToViewportMethod · 0.80

Tested by

no test coverage detected