X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/58445511632b8e6c043e6bf7e5ef63630ecbc829..2d5b15f3ca1f7f92f949906d0199f9266d845e31:/lib/python/Screens/AudioSelection.py diff --git a/lib/python/Screens/AudioSelection.py b/lib/python/Screens/AudioSelection.py index 6e3a288e..e69de29b 100644 --- a/lib/python/Screens/AudioSelection.py +++ b/lib/python/Screens/AudioSelection.py @@ -1,31 +0,0 @@ -from Screen import Screen -from Components.ActionMap import ActionMap -from Components.MenuList import MenuList -from Components.Label import Label - -class AudioSelection(Screen): - def KeyOk(self): - selection = self["tracks"].getCurrent() - print "select track " + str(selection[1]) - self.audio.selectTrack(selection[1]) - self.close() - def __init__(self, session, audio): - Screen.__init__(self, session) - - self["actions"] = ActionMap(["SetupActions"], - { - "cancel": self.close, - "ok": self.KeyOk, - }) - - self.audio = audio - - tlist = [] - n = audio.getNumberOfTracks() - for x in range(n): - i = audio.getTrackInfo(x) - tlist.append((i.getDescription(), x)) - - self["tracks"] = MenuList(tlist) - - \ No newline at end of file