aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-11 15:35:15 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-11 15:35:15 +0000
commit4f46a90d789f28eb0ca156caeb2bb55136d8ac85 (patch)
treeef900f2d2ccb96c5fd67e98140118cc4af699d6a /lib/python/Components
parent22414818f32ccf04fa6f6805b0e2fde56e1563ea (diff)
downloadenigma2-4f46a90d789f28eb0ca156caeb2bb55136d8ac85.tar.gz
enigma2-4f46a90d789f28eb0ca156caeb2bb55136d8ac85.zip
show plugin description in plugin list
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/PluginComponent.py6
-rw-r--r--lib/python/Components/PluginList.py7
2 files changed, 7 insertions, 6 deletions
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)