1 from GUIComponent import *
2 from skin import applyAllAttributes
8 self.onLayoutFinish = [ ]
11 def createGUIScreen(self, parent, desktop):
12 for val in self.values() + self.renderer:
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()
36 def createSummary(self):
39 def addSummary(self, summary):
40 self.summaries.append(summary)
42 def removeSummary(self, summary):
43 self.summaries.remove(summary)
45 def setTitle(self, title):
46 self.instance.setTitle(title)
49 for x in self.summaries: