1 from GUIComponent import GUIComponent
2 from skin import applyAllAttributes
3 from Tools.CList import CList
9 self.onLayoutFinish = [ ]
10 self.summaries = CList()
12 def createGUIScreen(self, parent, desktop):
13 for val in self.values() + self.renderer:
14 if isinstance(val, GUIComponent):
16 val.applySkin(desktop)
18 for w in self.additionalWidgets:
19 w.instance = w.widget(parent)
20 # w.instance.thisown = 0
21 applyAllAttributes(w.instance, desktop, w.skinAttributes)
23 for f in self.onLayoutFinish:
24 if type(f) is not type(self.close): # is this the best way to do this?
25 exec(f) in globals(), locals()
29 def deleteGUIScreen(self):
30 for (name, val) in self.items():
31 if isinstance(val, GUIComponent):
35 self.deleteGUIScreen()
37 def createSummary(self):
40 def addSummary(self, summary):
41 self.summaries.append(summary)
43 def removeSummary(self, summary):
44 self.summaries.remove(summary)
46 def setTitle(self, title):
47 self.instance.setTitle(title)
49 self.summaries.setTitle(title)