From d5abd2f599da721cf673d6a9caee06eb4ed402c2 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Sun, 25 Jun 2006 20:04:21 +0000 Subject: add enigma1 like radio mode (on/off switchable in usage setup) --- lib/python/Screens/InfoBar.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/python/Screens/InfoBar.py') diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py index 5669a77a..56721176 100644 --- a/lib/python/Screens/InfoBar.py +++ b/lib/python/Screens/InfoBar.py @@ -9,6 +9,7 @@ from ServiceReference import ServiceReference from Components.Clock import Clock from Components.ActionMap import ActionMap, HelpableActionMap from Components.ServicePosition import ServicePosition, ServicePositionGauge +from Components.config import currentConfigSelectionElement, config from Tools.Notifications import AddNotificationWithCallback @@ -43,7 +44,8 @@ class InfoBar(InfoBarShowHide, self["actions"] = HelpableActionMap(self, "InfobarActions", { "showMovies": (self.showMovies, _("Play recorded movies...")), - "showRadio": (self.showRadio, _("Show the radio player...")) + "showRadio": (self.showRadio, _("Show the radio player...")), + "showTv": (self.showTv, _("Show the tv player...")), }) for x in HelpableScreen, \ @@ -61,8 +63,14 @@ class InfoBar(InfoBarShowHide, self["CurrentTime"] = Clock() # ServicePosition(self.session.nav, ServicePosition.TYPE_REMAINING) + def showTv(self): + self.showTvChannelList(True) + def showRadio(self): - self.session.open(ChannelSelectionRadio) + if currentConfigSelectionElement(config.usage.e1like_radio_mode) == "yes": + self.showRadioChannelList(True) + else: + self.session.open(ChannelSelectionRadio) def showMovies(self): self.session.openWithCallback(self.movieSelected, MovieSelection) -- cgit v1.2.3