From: Stefan Pluecken Date: Wed, 4 Jan 2006 22:25:03 +0000 (+0000) Subject: remove info info X-Git-Tag: 2.6.0~4524 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/d731c3f593fc10252efee0ea0940f6a94f32a056 remove info info --- diff --git a/lib/python/Screens/EpgSelection.py b/lib/python/Screens/EpgSelection.py index 9458e395..64be16b7 100644 --- a/lib/python/Screens/EpgSelection.py +++ b/lib/python/Screens/EpgSelection.py @@ -43,7 +43,7 @@ class EPGSelection(Screen): "timerAdd": self.timerAdd, "yellow": self.yellowButtonPressed, "blue": self.blueButtonPressed, - "info": self.closeInfo + "info": self.closeClose }) self["actions"].csel = self diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 0b2f6d0c..aac470bf 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -358,7 +358,7 @@ class InfoBarEPG: def __init__(self): self["EPGActions"] = HelpableActionMap(self, "InfobarEPGActions", { - "showEPGList": (self.openSingleServiceEPG, _("show EPG...")), + "showEPGList": (self.showEPGList, _("show EPG...")), }) def showEPGList(self): @@ -382,6 +382,22 @@ class InfoBarEPG: if info: self.showEPGList() + def openEventView(self): + try: + self.epglist = [ ] + service = self.session.nav.getCurrentService() + info = service.info() + ptr=info.getEvent(0) + if ptr: + self.epglist.append(ptr) + ptr=info.getEvent(1) + if ptr: + self.epglist.append(ptr) + if len(self.epglist) > 0: + self.session.open(EventView, self.epglist[0], ServiceReference(ref), self.eventViewCallback) + except: + pass + def openSingleServiceEPG(self): ref=self.session.nav.getCurrentlyPlayingServiceReference() ptr=eEPGCache.getInstance() @@ -389,20 +405,7 @@ class InfoBarEPG: self.session.openWithCallback(self.singleEPGCallback, EPGSelection, ref) else: # try to show now/next print 'no epg for service', ref.toString() - try: - self.epglist = [ ] - service = self.session.nav.getCurrentService() - info = service.info() - ptr=info.getEvent(0) - if ptr: - self.epglist.append(ptr) - ptr=info.getEvent(1) - if ptr: - self.epglist.append(ptr) - if len(self.epglist) > 0: - self.session.open(EventView, self.epglist[0], ServiceReference(ref), self.eventViewCallback) - except: - pass + def openBouquetEPG(self, bouquet): ptr=eEPGCache.getInstance()