diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/InfoBar.py | 19 | ||||
| -rw-r--r-- | lib/python/enigma_python.i | 2 |
2 files changed, 19 insertions, 2 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py index 44484a51..da2509e2 100644 --- a/lib/python/Screens/InfoBar.py +++ b/lib/python/Screens/InfoBar.py @@ -19,6 +19,11 @@ import time from Menu import MainMenu, mdom class InfoBar(Screen): + STATE_HIDDEN = 0 + STATE_HIDING = 1 + STATE_SHOWING = 2 + STATE_SHOWN = 3 + def __init__(self, session): Screen.__init__(self, session) @@ -58,6 +63,8 @@ class InfoBar(Screen): self["Event_Next_Duration"] = EventInfo(self.session.nav, EventInfo.Next_Duration) self.recording = None + + self.pos = 0 def mainMenu(self): print "loading mainmenu XML..." @@ -78,9 +85,11 @@ class InfoBar(Screen): def toggleShow(self): if self.instance.isVisible(): - self.instance.hide() +# self.instance.hide() + self.startHide() else: - self.instance.show() +# self.instance.show() + self.startShow() def zapUp(self): self.servicelist.moveUp() @@ -97,6 +106,12 @@ class InfoBar(Screen): def volDown(self): eDVBVolumecontrol.getInstance().volumeDown() self.volumeBar.setValue(eDVBVolumecontrol.getInstance().getVolume()) + + def startShow(self): + self.instance.m_animation.startMoveAnimation(ePoint(0, 500), ePoint(0, 380), 100) + + def startHide(self): + self.instance.m_animation.startMoveAnimation(ePoint(0, 380), ePoint(0, 500), 100) def volMute(self): eDVBVolumecontrol.getInstance().volumeToggleMute() diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 01ba75b6..3e6c5db3 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -57,6 +57,7 @@ is usually caused by not marking PSignals as immutable. #include <lib/gui/ewidgetdesktop.h> #include <lib/gui/ewindowstyle.h> #include <lib/gui/ewindowstyleskinned.h> +#include <lib/gui/ewidgetanimation.h> #include <lib/gui/eslider.h> #include <lib/python/connections.h> #include <lib/gui/elistbox.h> @@ -119,6 +120,7 @@ extern PSignal1<void,int> &keyPressedSignal(); %include <lib/gui/elistboxcontent.h> %include <lib/gui/ewindowstyle.h> %include <lib/gui/ewindowstyleskinned.h> +%include <lib/gui/ewidgetanimation.h> %include <lib/service/listboxservice.h> %include <lib/components/scan.h> %include <lib/nav/pcore.h> |
