-from enigma import loadPNG
from Components.config import ConfigSubsection, config
+from Tools.LoadPixmap import LoadPixmap
config.plugins = ConfigSubsection()
WHERE_PLUGINMENU = 2
# argument: session, serviceref (currently selected)
WHERE_MOVIELIST = 3
- # argument: menuid. Fnc must return list with menuitems (2-tuple of name, fnc to call)
+ # argument: menuid. Fnc must return list with menuitems (4-tuple of name, fnc to call, entryid or None, weight or None)
WHERE_MENU = 4
# reason (0: start, 1: end)
def updateIcon(self, path):
if type(self.iconstr) is str:
- self.icon = loadPNG(path + "/" + self.iconstr)
+ self.icon = LoadPixmap(path + "/" + self.iconstr)
else:
self.icon = None