diff options
Diffstat (limited to 'lib/python/Components')
| -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(): |
