patch by Pieter Grimmerink: use ext3 largefile option only for disks > 4G
[enigma2.git] / lib / python / Components / ServiceEventTracker.py
1 class ServiceEventTracker:
2         """Tracks service events into a screen"""
3         
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)
9
10         def __del_event(self):
11                 self.session.nav.event.remove(self.__event)
12
13         def __event(self, ev):
14                 if ev in self.__eventmap:
15                         self.__eventmap[ev]()