<screen name="ServiceInfo" position="180,120" size="360,330">
<widget name="infolist" position="20,10" size="320,325" />
</screen>
+ <screen name="AudioSelection" position="210,150" size="300,170">
+ <widget name="tracks" position="20,10" size="260,150" />
+ </screen>
<screen name="HarddiskSelection" position="140,165" size="360,100">
<widget name="hddlist" position="20,10" size="320,75" />
</screen>
--- /dev/null
+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
MessageBox.py ScartLoopThrough.py Screen.py ServiceScan.py TimerEdit.py \
MovieSelection.py Setup.py About.py HarddiskSetup.py FixedMenu.py \
Satconfig.py ScanSetup.py NetworkSetup.py Ci.py TimerEntry.py Volume.py \
- EpgSelection.py EventView.py Mute.py Standby.py ServiceInfo.py __init__.py
+ EpgSelection.py EventView.py Mute.py Standby.py ServiceInfo.py \
+ AudioSelection.py __init__.py
"ScartLoopThrough", "Screen", "ServiceScan", "About",
"TimerEdit", "Setup", "HarddiskSetup", "FixedMenu",
"Satconfig", "Scanconfig", "Ci.py", "Volume.py", "Mute.py",
- "EpgSelection", "EventView", "Standby", "ServiceInfo"]
+ "EpgSelection", "EventView", "Standby", "ServiceInfo",
+ "AudioSelection"]