aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-09-02 01:26:57 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-09-02 01:26:57 +0000
commitd17eccddcb6e6a6e4a5c259514355e791933139d (patch)
tree1b90211de8bf115eeb2d06b616597c6b3be91f78 /lib/python
parentbf937d04817e6af798d7bdc9de5d85f9654f5bcf (diff)
downloadenigma2-d17eccddcb6e6a6e4a5c259514355e791933139d.tar.gz
enigma2-d17eccddcb6e6a6e4a5c259514355e791933139d.zip
now infobar disappears after 5s - animation is broken now
the self.state is a bit confusing (for non-animation support)
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBar.py23
1 files changed, 19 insertions, 4 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py
index 28bb39df..0333a8b1 100644
--- a/lib/python/Screens/InfoBar.py
+++ b/lib/python/Screens/InfoBar.py
@@ -33,6 +33,11 @@ class InfoBar(Screen):
self.volumeBar = VolumeBar()
self.state = self.STATE_HIDDEN
+
+ self.hideTimer = eTimer()
+ self.hideTimer.timeout.get().append(self.doTimerHide)
+ #self.hideTimer.start(1000)
+
self["actions"] = ActionMap( [ "InfobarActions" ],
{
@@ -87,13 +92,23 @@ class InfoBar(Screen):
def hide(self):
self.instance.hide()
+ def doTimerHide(self):
+ if self.state == self.STATE_SHOWN:
+ self.instance.hide()
+ self.state = self.STATE_HIDDEN
+
def toggleShow(self):
if self.state == self.STATE_SHOWN:
-# self.instance.hide()
- self.startHide()
+ self.instance.hide()
+ #pls check animation support, sorry
+# self.startHide()
+ self.state = self.STATE_HIDDEN
else:
-# self.instance.show()
- self.startShow()
+ self.instance.show()
+# self.startShow()
+ self.state = self.STATE_SHOWN
+ #TODO: make it customizable
+ self.hideTimer.start(5000)
def zapUp(self):
self.servicelist.moveUp()