diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-22 15:22:30 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-22 15:22:30 +0000 |
| commit | d120b13dd6d9460fc9a66680ffb42632cb597522 (patch) | |
| tree | 3eaeb6584a450d5b022189aeef52d0fd1589c29e /lib/python/Plugins/Plugin.py | |
| parent | 6119f4c4a0d947d56e758fe53f2822db8490b444 (diff) | |
| download | enigma2-d120b13dd6d9460fc9a66680ffb42632cb597522.tar.gz enigma2-d120b13dd6d9460fc9a66680ffb42632cb597522.zip | |
add FileManger plugin
reenable plugin icons
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 |
