self.onExecBegin = [ ]
self.onShown = [ ]
+ self.onShow = [ ]
+ self.onHide = [ ]
+
self.execing = False
+ self.shown = False
# in order to support screens *without* a help,
# we need the list in every screen. how ironic.
del self.session
for (name, val) in self.items():
del self[name]
+
+ # really delete all elements now
+ self.__dict__.clear()
def close(self, *retval):
self.session.close(*retval)
def setFocus(self, o):
self.instance.setFocus(o.instance)
+
+ def show(self):
+ if self.shown:
+ return
+ self.shown = True
+ self.instance.show()
+ for x in self.onShow:
+ x()
+
+ def hide(self):
+ if not self.shown:
+ return
+ self.shown = False
+ self.instance.hide()
+ for x in self.onHide:
+ x()