aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/AudioSelection.py
blob: a3700ce8f835413b9c4000d67a011eebd39fd926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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")