From cc9862b55b147eb78581813ba70d574940ac103d Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sat, 14 Jan 2006 17:59:32 +0000 Subject: display last 7 services during scan --- lib/python/Components/FIFOList.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/python/Components/FIFOList.py (limited to 'lib/python/Components/FIFOList.py') 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) -- cgit v1.2.3