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

Method redraw

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

Source from the content-addressed store, hash-verified

75 self.redraw()
76
77 def redraw(self):
78 sc = self.canvas
79 sc.delete(self._ALL)
80 width = sc.winfo_width()
81 height =sc.winfo_height()
82 sc.create_rectangle([[0,0],[width,height]],
83 fill = self.bgcolor, tag = self._ALL)
84 viewport = (self.pad,self.pad,width-self.pad,height-self.pad)
85 self.T = transformer(self.world,viewport)
86 self.paintgrafics()
87
88 def paintgrafics(self):
89 start = -pi/2

Callers 1

configureMethod · 0.95

Calls 3

paintgraficsMethod · 0.95
transformerClass · 0.70
deleteMethod · 0.45

Tested by

no test coverage detected