diff options
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/MovieList.py | 11 | ||||
| -rw-r--r-- | lib/python/Components/ServiceList.py | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index 2e010ab6..7121772c 100644 --- a/lib/python/Components/MovieList.py +++ b/lib/python/Components/MovieList.py @@ -62,7 +62,13 @@ class MovieList(HTMLComponent, GUIComponent): self.l.setList(self.list) self.l.setFont(0, gFont("Arial", 30)) self.l.setFont(1, gFont("Arial", 18)) - + + def moveToIndex(self, index): + self.instance.moveSelectionTo(index) + + def getCurrentIndex(self): + return self.instance.getCurrentIndex() + def getCurrent(self): return self.l.getCurrentSelection() @@ -103,3 +109,6 @@ class MovieList(HTMLComponent, GUIComponent): def reload(self): self.load(self.root) self.l.setList(self.list) + + def moveDown(self): + self.instance.moveSelection(self.instance.moveDown) diff --git a/lib/python/Components/ServiceList.py b/lib/python/Components/ServiceList.py index d008c475..d24f956a 100644 --- a/lib/python/Components/ServiceList.py +++ b/lib/python/Components/ServiceList.py @@ -43,6 +43,12 @@ class ServiceList(HTMLComponent, GUIComponent): self.instance.moveSelectionTo(index) print "Moving to character " + str(char) + def moveToIndex(self, index): + self.instance.moveSelectionTo(index) + + def getCurrentIndex(self): + return self.instance.getCurrentIndex() + def GUIcreate(self, parent): self.instance = eListbox(parent) self.instance.setContent(self.l) |
