diff options
Diffstat (limited to 'lib/python/Plugins/Plugin.py')
| -rw-r--r-- | lib/python/Plugins/Plugin.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/python/Plugins/Plugin.py b/lib/python/Plugins/Plugin.py index d3635091..183419c7 100644 --- a/lib/python/Plugins/Plugin.py +++ b/lib/python/Plugins/Plugin.py @@ -1,3 +1,5 @@ +from enigma import loadPNG + class PluginDescriptor: """An object to describe a plugin.""" @@ -31,8 +33,13 @@ class PluginDescriptor: else: self.where = [ where ] self.description = description - if type(fnc) is str: - self.icon = loadPNG("..") - else: - self.icon = icon + + self.iconstr = icon + self.__call__ = fnc + + def updateIcon(self, path): + if type(self.iconstr) is str: + self.icon = loadPNG(path + self.iconstr) + else: + self.icon = None
\ No newline at end of file |
