write text support in eCanvas
[enigma2.git] / lib / python / Components / Sources / CanvasSource.py
index 4fd0e02acd548432329c5130be45b03ca656c5f1..2f3aaecc78225d9ea2b0790651da50524bc39202 100644 (file)
@@ -16,5 +16,10 @@ class CanvasSource(Source):
        drawlist = property(get_drawlist)
 
        def fill(self, x, y, width, height, color):
-               self.drawlist[1].append( (1, x, y, width, height, color) )
-               self.changed()
+               self.drawlist[1].append((1, x, y, width, height, color))
+
+       def writeText(self, x, y, width, height, fg, bg, font, text, flags = 0):
+               self.drawlist[1].append((2, x, y, width, height, fg, bg, font, text, flags))
+
+       def flush(self):
+               self.changed((self.CHANGED_DEFAULT,))