From f414a53c337844af29471698a3a3f0708eda4837 Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Mon, 14 Nov 2005 22:50:10 +0000 Subject: add audioselection --- lib/python/Screens/AudioSelection.py | 27 +++++++++++++++++++++++++++ lib/python/Screens/Makefile.am | 3 ++- lib/python/Screens/__init__.py | 3 ++- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 lib/python/Screens/AudioSelection.py (limited to 'lib/python') 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"] -- cgit v1.2.3