X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/08fca93e7f2a37a452399d08c5c84b969b7e52af..174f7b85cec9804931de3d432466e28b0da93fdb:/lib/python/Components/FileList.py diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py index d726b833..ce1f236f 100644 --- a/lib/python/Components/FileList.py +++ b/lib/python/Components/FileList.py @@ -47,7 +47,7 @@ def FileEntryComponent(name, absolute = None, isDir = False): return res -class FileList(HTMLComponent, GUIComponent, MenuList): +class FileList(MenuList, HTMLComponent, GUIComponent): def __init__(self, directory, showDirectories = True, showFiles = True, matchingPattern = None, useServiceRef = False, isTop = False): GUIComponent.__init__(self) self.l = eListboxPythonMultiContent() @@ -134,8 +134,9 @@ class FileList(HTMLComponent, GUIComponent, MenuList): def getServiceRef(self): return self.getSelection()[0] - - def GUIcreate(self, parent): - self.instance = eListbox(parent) - self.instance.setContent(self.l) - self.instance.setItemHeight(23) + + GUI_WIDGET = eListbox + + def postWidgetCreate(self, instance): + instance.setContent(self.l) + instance.setItemHeight(23)