aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBar.py6
-rw-r--r--lib/python/Screens/Makefile.am2
-rw-r--r--lib/python/Screens/Volume.py13
3 files changed, 18 insertions, 3 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py
index b837c531..9702eed7 100644
--- a/lib/python/Screens/InfoBar.py
+++ b/lib/python/Screens/InfoBar.py
@@ -120,15 +120,17 @@ class InfoBar(Screen):
def volUp(self):
eDVBVolumecontrol.getInstance().volumeUp()
self.volumeDialog.instance.show()
- #self.volumeDialog.instance.setValue(eDVBVolumecontrol.getInstance().getVolume())
+ # FIXME: help wanted :)
+ self.volumeDialog.instance.setValue(eDVBVolumecontrol.getInstance().getVolume())
self.hideVolTimer = eTimer()
self.hideVolTimer.timeout.get().append(self.volHide)
self.hideVolTimer.start(3000)
def volDown(self):
eDVBVolumecontrol.getInstance().volumeDown()
- #self.volumeDialog.instance.volumeBar.setValue(eDVBVolumecontrol.getInstance().getVolume())
self.volumeDialog.instance.show()
+ # FIXME: help wanted :)
+ self.volumeDialog.setValue(eDVBVolumecontrol.getInstance().getVolume())
self.hideVolTimer = eTimer()
self.hideVolTimer.timeout.get().append(self.volHide)
self.hideVolTimer.start(3000)
diff --git a/lib/python/Screens/Makefile.am b/lib/python/Screens/Makefile.am
index ecd2da55..b300d879 100644
--- a/lib/python/Screens/Makefile.am
+++ b/lib/python/Screens/Makefile.am
@@ -4,4 +4,4 @@ install_PYTHON = \
ChannelSelection.py ClockDisplay.py ConfigMenu.py InfoBar.py Menu.py \
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 __init__.py
+ Satconfig.py ScanSetup.py NetworkSetup.py Ci.py TimerEntry.py Volume.py __init__.py
diff --git a/lib/python/Screens/Volume.py b/lib/python/Screens/Volume.py
new file mode 100644
index 00000000..0c1d4cea
--- /dev/null
+++ b/lib/python/Screens/Volume.py
@@ -0,0 +1,13 @@
+from Screen import Screen
+from Components.VolumeBar import VolumeBar
+
+class Volume(Screen):
+ def __init__(self, session):
+ Screen.__init__(self, session)
+
+ self.volumeBar = VolumeBar()
+
+ self["Volume"] = self.volumeBar
+
+ def setValue(self, vol):
+ self.volumeBar.setValue(vol)