aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/InfoBar.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-05 20:28:04 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-05 20:28:04 +0000
commita7bc9fd319677465f0561773401ff0390ae3af9c (patch)
tree974cb834a2ffc42a6cb70b5411161adff15b570c /lib/python/Screens/InfoBar.py
parenteef9f3c2100087c15e1a007194f556aea4d3905e (diff)
downloadenigma2-a7bc9fd319677465f0561773401ff0390ae3af9c.tar.gz
enigma2-a7bc9fd319677465f0561773401ff0390ae3af9c.zip
add radio player
TODO: change layout in skin.xml (ChannelSelectionRadio ... add nice pixmap ? ! ?) TODO: add infobar infos (now/next starttime, title, duration to player) TODO: add nice background pic ? ! ?
Diffstat (limited to 'lib/python/Screens/InfoBar.py')
-rw-r--r--lib/python/Screens/InfoBar.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py
index aaa3deba..c2616dab 100644
--- a/lib/python/Screens/InfoBar.py
+++ b/lib/python/Screens/InfoBar.py
@@ -1,6 +1,7 @@
from Screen import Screen
from Screens.MovieSelection import MovieSelection
+from Screens.ChannelSelection import ChannelSelectionRadio
from Screens.MessageBox import MessageBox
from ServiceReference import ServiceReference
@@ -33,20 +34,26 @@ class InfoBar(Screen, InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey,
self["actions"] = HelpableActionMap(self, "InfobarActions",
{
- "showMovies": (self.showMovies, _("Play recorded movies..."))
+ "showMovies": (self.showMovies, _("Play recorded movies...")),
+ "showRadio": (self.showRadio, _("Show the radio player..."))
})
for x in HelpableScreen, \
InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey, \
InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, InfoBarEPG, \
InfoBarEvent, InfoBarServiceName, InfoBarInstantRecord, InfoBarAudioSelection, \
- InfoBarAdditionalInfo, InfoBarNotifications, InfoBarDish, InfoBarSubserviceSelection, InfoBarTuner:
+ InfoBarAdditionalInfo, InfoBarNotifications, InfoBarDish, InfoBarSubserviceSelection, \
+ InfoBarTuner:
x.__init__(self)
self.helpList.append((self["actions"], "InfobarActions", [("showMovies", "Watch a Movie...")]))
+ self.helpList.append((self["actions"], "InfobarActions", [("showRadio", "Hear Radio...")]))
self["CurrentTime"] = Clock()
+ def showRadio(self):
+ self.session.open(ChannelSelectionRadio)
+
def showMovies(self):
self.session.openWithCallback(self.movieSelected, MovieSelection)