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 " --- lib/python/Components/GUISkin.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/python/Components/GUISkin.py') 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() -- cgit v1.2.3