From 061f02110eeeb6f8b44b2d3229a098c3c270f10c Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Wed, 11 Jan 2006 14:23:48 +0000 Subject: add arabic to the language list change plugin interface: plugins can now have screens or functions as objects to call when plugin is selected plugins can have multiple plugin menu entries --- lib/python/Plugins/update/plugin.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'lib/python/Plugins/update/plugin.py') diff --git a/lib/python/Plugins/update/plugin.py b/lib/python/Plugins/update/plugin.py index 500b6825..79f67490 100644 --- a/lib/python/Plugins/update/plugin.py +++ b/lib/python/Plugins/update/plugin.py @@ -56,14 +56,11 @@ class Example(Screen): #def autoend(): #print "**************************** AUTOEND" -def main(session): - session.open(Example) - -def getPicturePath(): - return "update.png" +def getPicturePaths(): + return ["update.png"] -def getPluginName(): - return "Softwareupdate" +def getPlugins(): + return [("Softwareupdate", "screen", "Example")] def getMenuRegistrationList(): list = [] -- cgit v1.2.3