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

Method redraw

recipes/Python/578493_Analog_stopclock/recipe-578493.py:99–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

97 self.redraw()
98
99 def redraw(self):
100 sc = self.canvas
101 sc.delete(self._ALL)
102 width = sc.winfo_width()
103 height =sc.winfo_height()
104 sc.create_rectangle([[0,0],[width,height]],
105 fill = self.bgcolor, tag = self._ALL)
106 viewport = (self.pad,self.pad,width-self.pad,height-self.pad)
107 self.T = transformer(self.world,viewport)
108 self.paintgrafics()
109
110 def paintgrafics(self):
111 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