diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-11 15:35:15 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-11 15:35:15 +0000 |
| commit | 4f46a90d789f28eb0ca156caeb2bb55136d8ac85 (patch) | |
| tree | ef900f2d2ccb96c5fd67e98140118cc4af699d6a /lib/python/Components/PluginList.py | |
| parent | 22414818f32ccf04fa6f6805b0e2fde56e1563ea (diff) | |
| download | enigma2-4f46a90d789f28eb0ca156caeb2bb55136d8ac85.tar.gz enigma2-4f46a90d789f28eb0ca156caeb2bb55136d8ac85.zip | |
show plugin description in plugin list
Diffstat (limited to 'lib/python/Components/PluginList.py')
| -rw-r--r-- | lib/python/Components/PluginList.py | 7 |
1 files changed, 4 insertions, 3 deletions
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) |
