1 from GUIComponent import *
2 from skin import applyAllAttributes
8 self.onLayoutFinish = [ ]
11 def createGUIScreen(self, parent, desktop):
12 for (name, val) in self.items():
13 if isinstance(val, GUIComponent):
15 val.applySkin(desktop)
17 for w in self.additionalWidgets:
18 w.instance = w.widget(parent)
19 # w.instance.thisown = 0
20 applyAllAttributes(w.instance, desktop, w.skinAttributes)
22 for f in self.onLayoutFinish:
23 if type(f) is not type(self.close): # is this the best way to do this?
24 exec(f) in globals(), locals()
28 def deleteGUIScreen(self):
29 for (name, val) in self.items():
30 if isinstance(val, GUIComponent):
34 self.deleteGUIScreen()