class ChoiceList(MenuList):
def __init__(self, list, selection = 0, enableWrapAround=False):
- MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent())
+ MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 20))
self.l.setItemHeight(25)
self.selection = selection
class FileList(MenuList):
def __init__(self, directory, showDirectories = True, showFiles = True, matchingPattern = None, useServiceRef = False, isTop = False, enableWrapAround = False):
- MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent())
+ MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.mount_point = None
self.current_directory = None
self.useServiceRef = useServiceRef
class PlayList(MenuList):
def __init__(self, enableWrapAround = False):
- MenuList.__init__(self, [], enableWrapAround, eListboxPythonMultiContent())
+ MenuList.__init__(self, [], enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 18))
self.l.setItemHeight(22)
self.currPlaying = -1
from enigma import eListboxPythonStringContent, eListbox
class MenuList(HTMLComponent, GUIComponent):
- def __init__(self, list, enableWrapAround=False, content=eListboxPythonStringContent()):
+ def __init__(self, list, enableWrapAround=False, content=eListboxPythonStringContent):
GUIComponent.__init__(self)
self.list = list
- self.l = content
+ self.l = content()
self.l.setList(self.list)
self.onSelectionChanged = [ ]
self.enableWrapAround = enableWrapAround
class ParentalControlList(MenuList):
def __init__(self, list, enableWrapAround = False):
- MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent())
+ MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 20))
self.l.setItemHeight(32)
class PluginList(MenuList):
def __init__(self, list, enableWrapAround=False):
- MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent())
+ MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 20))
self.l.setFont(1, gFont("Regular", 14))
self.l.setItemHeight(50)
class SelectionList(MenuList):
def __init__(self, list = None, enableWrapAround = False):
- MenuList.__init__(self, list or [], enableWrapAround, content = eListboxPythonMultiContent())
+ MenuList.__init__(self, list or [], enableWrapAround, content = eListboxPythonMultiContent)
self.l.setFont(0, gFont("Regular", 20))
self.l.setItemHeight(30)