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 exec(f) in globals(), locals()
25 def deleteGUIScreen(self):
26 for (name, val) in self.items():
27 if isinstance(val, GUIComponent):
31 self.deleteGUIScreen()