1 from Source import Source
3 class CanvasSource(Source):
11 self._drawlist = (self.sequence, [ ])
13 def get_drawlist(self):
16 drawlist = property(get_drawlist)
18 def fill(self, x, y, width, height, color):
19 self.drawlist[1].append((1, x, y, width, height, color))
21 def writeText(self, x, y, width, height, fg, bg, font, text, flags = 0):
22 self.drawlist[1].append((2, x, y, width, height, fg, bg, font, text, flags))
25 self.changed((self.CHANGED_DEFAULT,))