add ability to append normal funktions to Screen.onLayoutFinish call list
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 7 Dec 2005 01:12:33 +0000 (01:12 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 7 Dec 2005 01:12:33 +0000 (01:12 +0000)
lib/python/Components/GUISkin.py

index 982cce3..c953aae 100644 (file)
@@ -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():