diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-14 22:50:10 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-14 22:50:10 +0000 |
| commit | f414a53c337844af29471698a3a3f0708eda4837 (patch) | |
| tree | f7d65dc7f4752987f9a17a36e45cf382c13b8f28 /lib/python | |
| parent | d4db62a3c940f3d9dabc97a55dd028b7f869047f (diff) | |
| download | enigma2-f414a53c337844af29471698a3a3f0708eda4837.tar.gz enigma2-f414a53c337844af29471698a3a3f0708eda4837.zip | |
add audioselection
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/AudioSelection.py | 27 | ||||
| -rw-r--r-- | lib/python/Screens/Makefile.am | 3 | ||||
| -rw-r--r-- | lib/python/Screens/__init__.py | 3 |
3 files changed, 31 insertions, 2 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 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"] |
