1 class ServiceEventTracker:
2 """Tracks service events into a screen"""
4 def __init__(self, screen, eventmap):
5 self.__eventmap = eventmap
6 self.session = screen.session
7 self.session.nav.event.append(self.__event)
8 screen.onClose.append(self.__del_event)
10 def __del_event(self):
11 self.session.nav.event.remove(self.__event)
13 def __event(self, ev):
14 if ev in self.__eventmap: