X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/09f2e2935df89c375633517884682151de3d9741..87b1a41106c4561a400536558d10dc703b3f81f4:/lib/python/Plugins/Plugin.py diff --git a/lib/python/Plugins/Plugin.py b/lib/python/Plugins/Plugin.py index b3886723..f6f9b481 100644 --- a/lib/python/Plugins/Plugin.py +++ b/lib/python/Plugins/Plugin.py @@ -1,5 +1,5 @@ -from enigma import loadPNG from Components.config import ConfigSubsection, config +from Tools.LoadPixmap import LoadPixmap config.plugins = ConfigSubsection() @@ -22,7 +22,7 @@ class PluginDescriptor: WHERE_PLUGINMENU = 2 # argument: session, serviceref (currently selected) WHERE_MOVIELIST = 3 - # argument: menuid. Fnc must return list with menuitems (3-tuple of name, fnc to call, entryid or None) + # 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) @@ -63,7 +63,7 @@ class PluginDescriptor: 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