From 1b1b733e65f6683aa3887e63f832b74f76b4d5fd Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 19 Dec 2005 12:05:48 +0000 Subject: fix service/movie remove (hold cursor position when possible) change titlebar of channelselection when edit mode or move mode is enabled --- lib/python/Components/MovieList.py | 11 ++++++++++- lib/python/Components/ServiceList.py | 6 ++++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'lib/python/Components') 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) -- cgit v1.2.3