- n = self.getCurrent()
-
- if self.help_window:
- print "close old help window!"
- self.session.deleteDialog(self.help_window)
-
- nh = n and n[1].helpWindow()
- print "n, nh:", n, nh
- if nh is not None and self.session is not None:
- print "show new help window"
- self.help_window = self.session.instantiateDialog(*nh)
- self.help_window.show()
-
- print "config selection changed, from ", self.current, " to ", n
- self.current = n
+ if self.current:
+ self.current[1].onDeselect(self.session)
+ self.current = self.getCurrent()
+ if self.current:
+ self.current[1].onSelect(self.session)