aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-02-03 15:38:45 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-02-03 15:38:45 +0000
commitf097c3b368c10b7c88f63038459c4c5a38889a1f (patch)
tree427c470f34173538d73d6729ee2fd6300f81f751 /lib/python/Components
parent9314a07dfcc0a5123beb50ddb198cbcc5805d7db (diff)
downloadenigma2-f097c3b368c10b7c88f63038459c4c5a38889a1f.tar.gz
enigma2-f097c3b368c10b7c88f63038459c4c5a38889a1f.zip
enable wrap around in epglist and servicelist
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/EpgList.py1
-rw-r--r--lib/python/Components/ServiceList.py9
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/python/Components/EpgList.py b/lib/python/Components/EpgList.py
index a8750485..542f5d9a 100644
--- a/lib/python/Components/EpgList.py
+++ b/lib/python/Components/EpgList.py
@@ -103,6 +103,7 @@ class EPGList(HTMLComponent, GUIComponent):
def GUIcreate(self, parent):
self.instance = eListbox(parent)
+ self.instance.setWrapAround(True)
self.instance.selectionChanged.get().append(self.selectionChanged)
self.instance.setContent(self.l)
if SINGLE_CPP > 0:
diff --git a/lib/python/Components/ServiceList.py b/lib/python/Components/ServiceList.py
index 2cef35c1..2b80c225 100644
--- a/lib/python/Components/ServiceList.py
+++ b/lib/python/Components/ServiceList.py
@@ -25,12 +25,18 @@ class ServiceList(HTMLComponent, GUIComponent):
self.l.getCurrent(r)
return r
+ def atBegin(self):
+ return self.instance.atBegin()
+
+ def atEnd(self):
+ return self.instance.atEnd()
+
def moveUp(self):
self.instance.moveSelection(self.instance.moveUp)
def moveDown(self):
self.instance.moveSelection(self.instance.moveDown)
-
+
def moveToChar(self, char):
# TODO fill with life
print "Next char: "
@@ -51,6 +57,7 @@ class ServiceList(HTMLComponent, GUIComponent):
def GUIcreate(self, parent):
self.instance = eListbox(parent)
+ self.instance.setWrapAround(True)
self.instance.setContent(self.l)
self.setMode(self.mode)