From: Ronny Strutz Date: Mon, 14 Nov 2005 22:50:10 +0000 (+0000) Subject: add audioselection X-Git-Tag: 2.6.0~5222 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/f414a53c337844af29471698a3a3f0708eda4837?hp=d4db62a3c940f3d9dabc97a55dd028b7f869047f add audioselection --- diff --git a/data/skin.xml b/data/skin.xml index 52c9bb52..70b08b33 100644 --- a/data/skin.xml +++ b/data/skin.xml @@ -42,6 +42,9 @@ + + + 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 diff --git a/lib/python/Screens/Makefile.am b/lib/python/Screens/Makefile.am index 3e4e3c09..1999c411 100644 --- a/lib/python/Screens/Makefile.am +++ b/lib/python/Screens/Makefile.am @@ -5,4 +5,5 @@ install_PYTHON = \ 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 diff --git a/lib/python/Screens/__init__.py b/lib/python/Screens/__init__.py index 8a9c2bc0..cb25be47 100644 --- a/lib/python/Screens/__init__.py +++ b/lib/python/Screens/__init__.py @@ -3,4 +3,5 @@ __all__ = ["ChannelSelection", "ClockDisplay", "ConfigMenu", "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"]