diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-01-14 17:59:32 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-01-14 17:59:32 +0000 |
| commit | cc9862b55b147eb78581813ba70d574940ac103d (patch) | |
| tree | 895468d5149bb56e7f751c98ea6c42d168736e5c /lib/python | |
| parent | 742956672b795d0ffa44575f9a8e0255b768915c (diff) | |
| download | enigma2-cc9862b55b147eb78581813ba70d574940ac103d.tar.gz enigma2-cc9862b55b147eb78581813ba70d574940ac103d.zip | |
display last 7 services during scan
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/FIFOList.py | 12 | ||||
| -rw-r--r-- | lib/python/Components/Makefile.am | 3 |
2 files changed, 14 insertions, 1 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) diff --git a/lib/python/Components/Makefile.am b/lib/python/Components/Makefile.am index 9826daab..fcb5f8fd 100644 --- a/lib/python/Components/Makefile.am +++ b/lib/python/Components/Makefile.am @@ -11,4 +11,5 @@ install_PYTHON = \ AVSwitch.py Network.py RFmod.py DiskInfo.py NimManager.py Lcd.py \ EpgList.py ScrollLabel.py Timezones.py Language.py HelpMenuList.py \ BlinkingPixmap.py Pixmap.py ConditionalWidget.py Slider.py LanguageList.py \ - PluginList.py PluginComponent.py RecordingConfig.py About.py UsageConfig.py + PluginList.py PluginComponent.py RecordingConfig.py About.py UsageConfig.py \ + FIFOList.py |
