1 from Screen import Screen
3 from Components.Clock import Clock
4 from Components.ActionMap import ActionMap
5 from Screens.AudioSelection import AudioSelection
6 from Screens.MovieSelection import MovieSelection
8 from Screens.InfoBarGenerics import InfoBarVolumeControl, InfoBarShowHide, \
9 InfoBarPowerKey, InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, \
10 InfoBarEPG, InfoBarEvent, InfoBarServiceName, InfoBarPVR, InfoBarInstantRecord
16 class InfoBar(Screen, InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey, \
17 InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, InfoBarEPG, \
18 InfoBarEvent, InfoBarServiceName, InfoBarPVR, InfoBarInstantRecord):
19 def __init__(self, session):
20 Screen.__init__(self, session)
22 for x in InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey, \
23 InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, InfoBarEPG, \
24 InfoBarEvent, InfoBarServiceName, InfoBarPVR, InfoBarInstantRecord:
27 self["actions"] = ActionMap( [ "InfobarActions" ],
29 "showMovies": self.showMovies,
31 "audioSelection": self.audioSelection,
34 self["CurrentTime"] = Clock()
35 # ServicePosition(self.session.nav, ServicePosition.TYPE_REMAINING)
39 self.session.open(MovieSelection)
41 def audioSelection(self):
42 service = self.session.nav.getCurrentService()
43 audio = service.audioTracks()
44 n = audio.getNumberOfTracks()
46 self.session.open(AudioSelection, audio)