From 4f46a90d789f28eb0ca156caeb2bb55136d8ac85 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Wed, 11 Jan 2006 15:35:15 +0000 Subject: show plugin description in plugin list --- lib/python/Components/PluginComponent.py | 6 +++--- lib/python/Components/PluginList.py | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index 960043d6..e0cc90a4 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -40,10 +40,10 @@ class PluginComponent: pass for y in range(len(plugins)): - if len(plugins[y]) < 4: - list.append((path + picturepaths[y], plugins[y][0] , x, plugins[y][1], plugins[y][2], None)) + if len(plugins[y]) < 5: + list.append((path + picturepaths[y], plugins[y][0] , x, plugins[y][2], plugins[y][3], None, plugins[y][1])) else: - list.append((path + picturepaths[y], plugins[y][0] , x, plugins[y][1], plugins[y][2], plugins[y][3])) + list.append((path + picturepaths[y], plugins[y][0] , x, plugins[y][2], plugins[y][3], plugins[y][4], plugins[y][1])) if runAutostartPlugins: try: plugin.autostart() except: pass diff --git a/lib/python/Components/PluginList.py b/lib/python/Components/PluginList.py index f456ac46..93edf5ba 100644 --- a/lib/python/Components/PluginList.py +++ b/lib/python/Components/PluginList.py @@ -16,9 +16,10 @@ RT_VALIGN_TOP = 0 RT_VALIGN_CENTER = 8 RT_VALIGN_BOTTOM = 16 -def PluginEntryComponent(picture, name): +def PluginEntryComponent(picture, name, desc = "Plugin"): res = [ None ] - res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 10, 200, 50, 0, RT_HALIGN_LEFT , name)) + res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 5, 200, 25, 0, RT_HALIGN_LEFT , name)) + res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 26, 200, 17, 1, RT_HALIGN_LEFT , desc)) png = loadPNG(picture) if png == None: png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/plugin.png")) @@ -34,7 +35,7 @@ class PluginList(HTMLComponent, GUIComponent, MenuList): self.list = list self.l.setList(list) self.l.setFont(0, gFont("Regular", 20)) - self.l.setFont(1, gFont("Regular", 10)) + self.l.setFont(1, gFont("Regular", 14)) def GUIcreate(self, parent): self.instance = eListbox(parent) -- cgit v1.2.3