aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/FIFOList.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-01-14 17:59:32 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-01-14 17:59:32 +0000
commitcc9862b55b147eb78581813ba70d574940ac103d (patch)
tree895468d5149bb56e7f751c98ea6c42d168736e5c /lib/python/Components/FIFOList.py
parent742956672b795d0ffa44575f9a8e0255b768915c (diff)
downloadenigma2-cc9862b55b147eb78581813ba70d574940ac103d.tar.gz
enigma2-cc9862b55b147eb78581813ba70d574940ac103d.zip
display last 7 services during scan
Diffstat (limited to 'lib/python/Components/FIFOList.py')
-rw-r--r--lib/python/Components/FIFOList.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/python/Components/FIFOList.py b/lib/python/Components/FIFOList.py
new file mode 100644
index 00000000..16b51c89
--- /dev/null
+++ b/lib/python/Components/FIFOList.py
@@ -0,0 +1,12 @@
+from Components.MenuList import MenuList
+
+class FIFOList(MenuList):
+ def __init__(self, list = [ ], len = 10):
+ self.len = len
+ self.list = list
+ MenuList.__init__(self, self.list)
+
+ def addItem(self, item):
+ self.list.append(item)
+ self.list = self.list[-self.len:]
+ self.l.setList(self.list)