From 87bfe5dfced0fb7a4e9839fdafa898261a39c86c Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Wed, 31 Aug 2005 03:05:27 +0000 Subject: - fix serious problems in widget code. fixup buffered mode. add animation support.lib/gui --- lib/python/Screens/InfoBar.py | 19 +++++++++++++++++-- lib/python/enigma_python.i | 2 ++ 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'lib/python') 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 #include #include +#include #include #include #include @@ -119,6 +120,7 @@ extern PSignal1 &keyPressedSignal(); %include %include %include +%include %include %include %include -- cgit v1.2.3