aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources/MenuList.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-08-09 00:26:15 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-08-09 00:26:15 +0000
commit9d3112aad388b4369a339b851aa2507a02bb2d4f (patch)
tree744d27b53a25921978f8df8b1b1c2c836caa442c /lib/python/Components/Sources/MenuList.py
parentab2ae6bd08a0ef13fc7462d51fc3a9ab15509b17 (diff)
downloadenigma2-9d3112aad388b4369a339b851aa2507a02bb2d4f.tar.gz
enigma2-9d3112aad388b4369a339b851aa2507a02bb2d4f.zip
fix caching
Diffstat (limited to 'lib/python/Components/Sources/MenuList.py')
-rw-r--r--lib/python/Components/Sources/MenuList.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/lib/python/Components/Sources/MenuList.py b/lib/python/Components/Sources/MenuList.py
index dd5e18f7..e69de29b 100644
--- a/lib/python/Components/Sources/MenuList.py
+++ b/lib/python/Components/Sources/MenuList.py
@@ -1,40 +0,0 @@
-from Source import Source
-from Tools.Event import Event
-
-class MenuList(Source, object):
- def __init__(self, list = [ ], enableWrapAround = False):
- Source.__init__(self)
- self.__list = list
- self.onSelectionChanged = [ ]
-
- def setList(self, list):
- self.__list = list
- self.changed((self.CHANGED_ALL,))
-
- list = property(lambda self: self.__list, setList)
-
- def entry_changed(self, index):
- self.downstream_elements.entry_changed(self, index)
-
- def selectionChanged(self, index):
- for x in self.onSelectionChanged:
- x()
-
- def getCurrent(self):
- return self.master and self.master.current
-
- current = property(getCurrent)
-
- def setIndex(self, index):
- if self.master is not None:
- self.master = index
-
- def getIndex(self, index):
- if self.master is not None:
- return self.master.index
- else:
- return -1
-
- setCurrentIndex = setIndex
-
- index = property(getIndex, setIndex)