From 79cab0403882bf14a34828b75f50a34d445851a6 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 21 Sep 2007 20:15:18 +0000 Subject: add a "Picture in Graphics" source.. its usable to show a small embedded tv picture in every screen.. simply by add a line like " --- skin.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'skin.py') 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') -- cgit v1.2.3