From 4ebd765cac9f8a7ae4934147ed876a9e228eeb8d Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Wed, 31 Aug 2005 03:40:23 +0000 Subject: - fixes to use moving infobar non non-accel hardware. --- lib/python/Screens/InfoBar.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/python') 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() -- cgit v1.2.3