aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-19 12:05:48 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-19 12:05:48 +0000
commit1b1b733e65f6683aa3887e63f832b74f76b4d5fd (patch)
tree783a71ba775dd46814667570155962281cb0691f /lib/python/Components
parent4b7d05196b422208f9de957fa892be790f0a8de3 (diff)
downloadenigma2-1b1b733e65f6683aa3887e63f832b74f76b4d5fd.tar.gz
enigma2-1b1b733e65f6683aa3887e63f832b74f76b4d5fd.zip
fix service/movie remove (hold cursor position when possible)
change titlebar of channelselection when edit mode or move mode is enabled
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/MovieList.py11
-rw-r--r--lib/python/Components/ServiceList.py6
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)