1 from HTMLComponent import *
2 from GUIComponent import *
4 from MenuList import MenuList
6 from Tools.Directories import *
19 def PluginEntryComponent(picture, name, desc = "Plugin"):
21 res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 5, 300, 25, 0, RT_HALIGN_LEFT , name))
22 res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 26, 300, 17, 1, RT_HALIGN_LEFT , desc))
23 png = loadPNG(picture)
25 png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/plugin.png"))
26 res.append((eListboxPythonMultiContent.TYPE_PIXMAP, 10, 5, 60, 40, png))
31 class PluginList(HTMLComponent, GUIComponent, MenuList):
32 def __init__(self, list):
33 GUIComponent.__init__(self)
34 self.l = eListboxPythonMultiContent()
37 self.l.setFont(0, gFont("Regular", 20))
38 self.l.setFont(1, gFont("Regular", 14))
40 def GUIcreate(self, parent):
41 self.instance = eListbox(parent)
42 self.instance.setContent(self.l)
43 self.instance.setItemHeight(50)