removed debug output and fixed config-values
[enigma2.git] / lib / python / Components / ServiceName.py
1 from PerServiceDisplay import *
2
3 #from enigma import pNavigation, iServiceInformationPtr
4 from enigma import *
5
6 class ServiceName(PerServiceDisplay):
7         def __init__(self, navcore):
8                 PerServiceDisplay.__init__(self, navcore,
9                         {
10                                 pNavigation.evNewService: self.newService,
11                                 pNavigation.evStopService: self.stopEvent
12                         })
13
14         def newService(self):
15                 service = self.navcore.getCurrentService()
16                 
17                 if service is not None:
18                         info = service.info()
19                         if info is not None:
20                                 self.setText(info.getName())
21                                 setLCD(info.getName())
22         
23         def stopEvent(self):
24                         self.setText("");
25