aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/MovieList.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-03 12:19:14 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-03 12:19:14 +0000
commitabd961024accfc54ffea8a36999417b44861c52b (patch)
treee9390902263fc85109eecff386853f017807815f /lib/python/Components/MovieList.py
parent8c84c2a2c0b8d33404540ab50278de63d3c7fccc (diff)
downloadenigma2-abd961024accfc54ffea8a36999417b44861c52b.tar.gz
enigma2-abd961024accfc54ffea8a36999417b44861c52b.zip
display "please wait" message in movieselection while hdd spins up
Diffstat (limited to 'lib/python/Components/MovieList.py')
-rw-r--r--lib/python/Components/MovieList.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py
index 7ec8a9ff..b31f7ff5 100644
--- a/lib/python/Components/MovieList.py
+++ b/lib/python/Components/MovieList.py
@@ -59,8 +59,8 @@ class MovieList(HTMLComponent, GUIComponent):
def __init__(self, root):
GUIComponent.__init__(self)
self.l = eListboxPythonMultiContent()
- self.load(root)
- self.l.setList(self.list)
+ if root is not None:
+ self.reload(root)
self.l.setFont(0, gFont("Regular", 30))
self.l.setFont(1, gFont("Regular", 18))
@@ -82,6 +82,13 @@ class MovieList(HTMLComponent, GUIComponent):
self.instance.setContent(None)
self.instance = None
+ def reload(self, root = None):
+ if root is not None:
+ self.load(root)
+ else:
+ self.load(self.root)
+ self.l.setList(self.list)
+
def load(self, root):
# this lists our root service, then building a
# nice list
@@ -116,9 +123,5 @@ class MovieList(HTMLComponent, GUIComponent):
count += 1
self.instance.moveSelectionTo(found)
- def reload(self):
- self.load(self.root)
- self.l.setList(self.list)
-
def moveDown(self):
self.instance.moveSelection(self.instance.moveDown)