aboutsummaryrefslogtreecommitdiff
path: root/skin.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-09-21 20:15:18 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-09-21 20:15:18 +0000
commit79cab0403882bf14a34828b75f50a34d445851a6 (patch)
tree074699a60974a491f5e7e3b6eba9dc2980ddf26d /skin.py
parentd42c6cf196f659537b9da28049c90eccd9d7506e (diff)
downloadenigma2-79cab0403882bf14a34828b75f50a34d445851a6.tar.gz
enigma2-79cab0403882bf14a34828b75f50a34d445851a6.zip
add a "Picture in Graphics" source.. its usable to show a small embedded tv
picture in every screen.. simply by add a line like "<widget source="fake" render="Pig" backgroundColor="transparent" size="160,120" position="50,50" />
Diffstat (limited to 'skin.py')
-rw-r--r--skin.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/skin.py b/skin.py
index 0e0ec412..c34757c8 100644
--- a/skin.py
+++ b/skin.py
@@ -348,7 +348,13 @@ def readSkin(screen, skin, name, desktop):
# get corresponding source
source = screen.get(wsource)
if source is None:
- raise SkinError("source '" + wsource + "' was not found in screen '" + name + "'!")
+ if wsource == "fake":
+ if screen.get("fake"):
+ raise SkinError("screen '" + name + "has a element named 'fake' but its not a Source!!")
+ source = Source()
+ screen["fake"] = source
+ else:
+ raise SkinError("source '" + wsource + "' was not found in screen '" + name + "'!")
wrender = widget.getAttribute('render')