From: Andreas Monzner Date: Wed, 7 Dec 2005 01:12:33 +0000 (+0000) Subject: add ability to append normal funktions to Screen.onLayoutFinish call list X-Git-Tag: 2.6.0~4804 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/2ba80311aa9598a775b163f20ca7aff3df1e4d47 add ability to append normal funktions to Screen.onLayoutFinish call list --- diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py index 982cce31..c953aaec 100644 --- a/lib/python/Components/GUISkin.py +++ b/lib/python/Components/GUISkin.py @@ -20,7 +20,12 @@ class GUISkin: applyAllAttributes(w.instance, desktop, w.skinAttributes) for f in self.onLayoutFinish: - exec(f) in globals(), locals() + if type(f) is not type(self.close): # is this the best way to do this? + exec(f) in globals(), locals() + else: + f() + + def deleteGUIScreen(self): for (name, val) in self.items():