1 from MenuList import MenuList
3 from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE
4 from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest
6 from enigma import eListboxPythonMultiContent, gFont
7 from Tools.LoadPixmap import LoadPixmap
9 def PluginEntryComponent(plugin):
10 if plugin.icon is None:
11 png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/icons/plugin.png"))
17 MultiContentEntryText(pos=(120, 5), size=(320, 25), font=0, text=plugin.name),
18 MultiContentEntryText(pos=(120, 26), size=(320, 17), font=1, text=plugin.description),
19 MultiContentEntryPixmapAlphaTest(pos=(10, 5), size=(100, 40), png = png)
22 def PluginCategoryComponent(name, png):
25 MultiContentEntryText(pos=(120, 5), size=(320, 25), font=0, text=name),
26 MultiContentEntryPixmapAlphaTest(pos=(10, 0), size=(100, 50), png = png)
29 def PluginDownloadComponent(plugin, name):
30 if plugin.icon is None:
31 png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/icons/plugin.png"))
37 MultiContentEntryText(pos=(120, 5), size=(320, 25), font=0, text=name),
38 MultiContentEntryText(pos=(120, 26), size=(320, 17), font=1, text=plugin.description),
39 MultiContentEntryPixmapAlphaTest(pos=(10, 0), size=(100, 50), png = png)
43 class PluginList(MenuList):
44 def __init__(self, list, enableWrapAround=False):
45 MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
46 self.l.setFont(0, gFont("Regular", 20))
47 self.l.setFont(1, gFont("Regular", 14))
48 self.l.setItemHeight(50)