self.session = session
GUISkin.__init__(self)
+ self.onClose = [ ]
+ self.onExecBegin = [ ]
+ self.onShown = [ ]
+
+ # in order to support screens *without* a help,
+ # we need the list in every screen. how ironic.
+ self.helpList = [ ]
+
def execBegin(self):
+ for x in self.onExecBegin:
+ x()
# assert self.session == None, "a screen can only exec one per time"
# self.session = session
for (name, val) in self.items():
val.execBegin()
+
+ for x in self.onShown:
+ x()
def execEnd(self):
for (name, val) in self.items():
# never call this directly - it will be called from the session!
def doClose(self):
+ for x in self.onClose:
+ x()
+
+ # fixup circular references
+ del self.helpList
GUISkin.close(self)
del self.session