much longer delay after enable voltage before send diseqc commands... some
[enigma2.git] / lib / python / Components / FIFOList.py
1 from Components.MenuList import MenuList
2
3 class FIFOList(MenuList):
4         def __init__(self, list = [ ], len = 10):
5                 self.len = len
6                 self.list = list
7                 MenuList.__init__(self, self.list)
8         
9         def addItem(self, item):
10                 self.list.append(item)
11                 self.list = self.list[-self.len:]
12                 self.l.setList(self.list)
13
14         def clear(self):
15                 del self.list[:]
16                 self.l.setList(self.list)