aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/GUISkin.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 /lib/python/Components/GUISkin.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 'lib/python/Components/GUISkin.py')
-rw-r--r--lib/python/Components/GUISkin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py
index 39499c77..0cf4d027 100644
--- a/lib/python/Components/GUISkin.py
+++ b/lib/python/Components/GUISkin.py
@@ -35,9 +35,14 @@ class GUISkin:
f()
def deleteGUIScreen(self):
+ seenFakeSource = False
for (name, val) in self.items():
+ if name == "fake":
+ seenFakeSource = True
if isinstance(val, GUIComponent):
val.GUIdelete()
+ if seenFakeSource:
+ del self["fake"]
def close(self):
self.deleteGUIScreen()