remove debug code
[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                                 name = info.getName()
21                                 self.setText(name)
22                                 setLCD(name)
23         
24         def stopEvent(self):
25                         self.setText("");
26