aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-08-06 00:32:54 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-08-06 00:32:54 +0000
commita33014cdff9ff3e0b0d1b797f8ccf19bffadec1c (patch)
tree5d1329d1c2c2c5d4b774d41956248a8a4a5d7610 /lib/python/Components
parentb71658375ce390172fd466e6f427f93c586fe07f (diff)
downloadenigma2-a33014cdff9ff3e0b0d1b797f8ccf19bffadec1c.tar.gz
enigma2-a33014cdff9ff3e0b0d1b797f8ccf19bffadec1c.zip
set Canvas size to widget size
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Renderer/Canvas.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/python/Components/Renderer/Canvas.py b/lib/python/Components/Renderer/Canvas.py
index 01b05fb0..53757235 100644
--- a/lib/python/Components/Renderer/Canvas.py
+++ b/lib/python/Components/Renderer/Canvas.py
@@ -29,7 +29,6 @@ class Canvas(Renderer):
def draw(self, list):
for l in list:
- print "drawing ..", l
self.instance.fillRect(eRect(l[1], l[2], l[3], l[4]), gRGB(l[5]))
def changed(self, what):
@@ -37,4 +36,15 @@ class Canvas(Renderer):
def postWidgetCreate(self, instance):
self.sequence = None
+
+ from enigma import eSize
+
+ def parseSize(str):
+ x, y = str.split(',')
+ return eSize(int(x), int(y))
+
+ for (attrib, value) in self.skinAttributes:
+ if attrib == "size":
+ self.instance.setSize(parseSize(value))
+
self.pull_updates()