From ccb8d260ed5e51f6f65205be04744a9e8322aa6f Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Wed, 21 Dec 2005 04:41:36 +0000 Subject: add plugins to test it: uncomment the example.py in lib/python/Plugins/Makefile.am plugins can be added at runtime --- lib/python/Plugins/example.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lib/python/Plugins/example.py (limited to 'lib/python/Plugins/example.py') diff --git a/lib/python/Plugins/example.py b/lib/python/Plugins/example.py new file mode 100644 index 00000000..86e2cd14 --- /dev/null +++ b/lib/python/Plugins/example.py @@ -0,0 +1,34 @@ +from enigma import * +from Screens.Screen import Screen +from Components.ActionMap import ActionMap +from Components.Label import Label + +class Example(Screen): + skin = """ + + + """ + + def __init__(self, session): + self.skin = Example.skin + Screen.__init__(self, session) + + self["text"] = Label("Small test") + + self["actions"] = ActionMap(["WizardActions"], + { + "ok": self.ok + }, -1) + + def ok(self): + self.close() + +def main(session): + session.open(Example) + + +def getPicturePath(): + return "/usr/share/enigma2/record.png" + +def getPluginName(): + return "Fancy example-plugin" \ No newline at end of file -- cgit v1.2.3