diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-01-24 21:56:23 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-01-24 21:56:23 +0000 |
| commit | d09bd946be9c73d96fb8e1697b15e733d04ddeb6 (patch) | |
| tree | 0abc2c26f7ee2053934f507abcad2cca79cfa5e5 /lib/python/Components/Sources/CanvasSource.py | |
| parent | a3a94a50132256f3a6524efd6dba0e52e4774087 (diff) | |
| download | enigma2-d09bd946be9c73d96fb8e1697b15e733d04ddeb6.tar.gz enigma2-d09bd946be9c73d96fb8e1697b15e733d04ddeb6.zip | |
write text support in eCanvas
Diffstat (limited to 'lib/python/Components/Sources/CanvasSource.py')
| -rw-r--r-- | lib/python/Components/Sources/CanvasSource.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/python/Components/Sources/CanvasSource.py b/lib/python/Components/Sources/CanvasSource.py index 4fd0e02a..2f3aaecc 100644 --- a/lib/python/Components/Sources/CanvasSource.py +++ b/lib/python/Components/Sources/CanvasSource.py @@ -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,)) |
