aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/FIFOList.py
blob: 16b51c897eb929621d5858202da540011ec77472 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)