1 from Screen import Screen
2 from Components.ActionMap import ActionMap
3 from Components.MenuList import MenuList
4 from Components.Label import Label
6 class AudioSelection(Screen):
8 selection = self["tracks"].getCurrent()
9 print "select track " + str(selection[1])
10 self.audio.selectTrack(selection[1])
12 def __init__(self, session, audio):
13 Screen.__init__(self, session)
15 self["actions"] = ActionMap(["SetupActions"],
24 n = audio.getNumberOfTracks()
26 i = audio.getTrackInfo(x)
27 tlist.append((i.getDescription(), x))
29 self["tracks"] = MenuList(tlist)