git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b716583
)
set Canvas size to widget size
author
Felix Domke
<
[email protected]
>
Mon, 6 Aug 2007 00:32:54 +0000
(
00:32
+0000)
committer
Felix Domke
<
[email protected]
>
Mon, 6 Aug 2007 00:32:54 +0000
(
00:32
+0000)
lib/python/Components/Renderer/Canvas.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Renderer/Canvas.py
b/lib/python/Components/Renderer/Canvas.py
index 01b05fb0dc54b42f5d1d0715782707a25762a8de..53757235b2d787a245b3f74403f948d9728cbca3 100644
(file)
--- 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()