diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-07 01:12:33 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-07 01:12:33 +0000 |
| commit | 2ba80311aa9598a775b163f20ca7aff3df1e4d47 (patch) | |
| tree | f9417167acdb60b7ed08a16296a7aca665fcac48 /lib/python/Components/GUISkin.py | |
| parent | 77728f576114383a70a7126d88cd7b31e1588aa5 (diff) | |
| download | enigma2-2ba80311aa9598a775b163f20ca7aff3df1e4d47.tar.gz enigma2-2ba80311aa9598a775b163f20ca7aff3df1e4d47.zip | |
add ability to append normal funktions to Screen.onLayoutFinish call list
Diffstat (limited to 'lib/python/Components/GUISkin.py')
| -rw-r--r-- | lib/python/Components/GUISkin.py | 7 |
1 files changed, 6 insertions, 1 deletions
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(): |
