From c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 1 May 2006 11:47:04 +0000 Subject: simplify GUIcreate/createWidget, fix base class order --- lib/python/Components/PluginList.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/python/Components/PluginList.py') diff --git a/lib/python/Components/PluginList.py b/lib/python/Components/PluginList.py index 1b4daf18..7220f0a9 100644 --- a/lib/python/Components/PluginList.py +++ b/lib/python/Components/PluginList.py @@ -44,7 +44,7 @@ def PluginDownloadComponent(plugin, name): return res -class PluginList(HTMLComponent, GUIComponent, MenuList): +class PluginList(MenuList, HTMLComponent, GUIComponent): def __init__(self, list): GUIComponent.__init__(self) self.l = eListboxPythonMultiContent() @@ -52,8 +52,9 @@ class PluginList(HTMLComponent, GUIComponent, MenuList): self.l.setList(list) self.l.setFont(0, gFont("Regular", 20)) self.l.setFont(1, gFont("Regular", 14)) - - def GUIcreate(self, parent): - self.instance = eListbox(parent) - self.instance.setContent(self.l) - self.instance.setItemHeight(50) + + GUI_WIDGET = eListbox + + def postWidgetCreate(self, instance): + instance.setContent(self.l) + instance.setItemHeight(50) -- cgit v1.2.3