diff options
Diffstat (limited to 'lib/python/Screens/AudioSelection.py')
| -rw-r--r-- | lib/python/Screens/AudioSelection.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/python/Screens/AudioSelection.py b/lib/python/Screens/AudioSelection.py new file mode 100644 index 00000000..a3700ce8 --- /dev/null +++ b/lib/python/Screens/AudioSelection.py @@ -0,0 +1,27 @@ +from Screen import Screen +from Components.ActionMap import ActionMap +from Components.MenuList import MenuList +from Components.Label import Label + +class AudioSelection(Screen): + def __init__(self, session, audio): + Screen.__init__(self, session) + + self["actions"] = ActionMap(["SetupActions"], + { + "cancel": self.close, + "ok": self.close, + }) + + tlist = [] + + n = audio.getNumberOfTracks() + print "AUDIO TRACKS:" + for x in range(n): + i = audio.getTrackInfo(x) + print i.getDescription() + tlist.append((i.getDescription(), x)) + + self["tracks"] = MenuList(tlist) + #self["tracks"] = Label("Blasel") +
\ No newline at end of file |
