aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-08-31 03:40:23 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-08-31 03:40:23 +0000
commit4ebd765cac9f8a7ae4934147ed876a9e228eeb8d (patch)
treeac3d7e51c84b8a5cf421920c3a704f83199e9720 /lib/python
parent979746945488fdf70364f969071518034d5a87ea (diff)
downloadenigma2-4ebd765cac9f8a7ae4934147ed876a9e228eeb8d.tar.gz
enigma2-4ebd765cac9f8a7ae4934147ed876a9e228eeb8d.zip
- fixes to use moving infobar non non-accel hardware.
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBar.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py
index da2509e2..ed193f38 100644
--- a/lib/python/Screens/InfoBar.py
+++ b/lib/python/Screens/InfoBar.py
@@ -30,6 +30,8 @@ class InfoBar(Screen):
#instantiate forever
self.servicelist = self.session.instantiateDialog(ChannelSelection)
self.volumeBar = VolumeBar()
+
+ self.state = self.STATE_HIDDEN
self["actions"] = ActionMap( [ "InfobarActions" ],
{
@@ -84,7 +86,7 @@ class InfoBar(Screen):
self.instance.hide()
def toggleShow(self):
- if self.instance.isVisible():
+ if self.state == self.STATE_SHOWN:
# self.instance.hide()
self.startHide()
else:
@@ -108,10 +110,12 @@ class InfoBar(Screen):
self.volumeBar.setValue(eDVBVolumecontrol.getInstance().getVolume())
def startShow(self):
- self.instance.m_animation.startMoveAnimation(ePoint(0, 500), ePoint(0, 380), 100)
+ self.instance.m_animation.startMoveAnimation(ePoint(0, 600), ePoint(0, 380), 100)
+ self.state = self.STATE_SHOWN
def startHide(self):
- self.instance.m_animation.startMoveAnimation(ePoint(0, 380), ePoint(0, 500), 100)
+ self.instance.m_animation.startMoveAnimation(ePoint(0, 380), ePoint(0, 600), 100)
+ self.state = self.STATE_HIDDEN
def volMute(self):
eDVBVolumecontrol.getInstance().volumeToggleMute()