X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/85f5c84f1e3e4d22fb1939751d39de03877b93d8..f37aa673fead3c929789ef19af3f992f0f4be7a2:/lib/python/Plugins/test/plugin.py diff --git a/lib/python/Plugins/test/plugin.py b/lib/python/Plugins/test/plugin.py index c08a986f..1500dd8d 100644 --- a/lib/python/Plugins/test/plugin.py +++ b/lib/python/Plugins/test/plugin.py @@ -5,20 +5,21 @@ from Components.ActionMap import NumberActionMap from Components.Label import Label from Components.Input import Input from Components.GUIComponent import * +from Plugins.Plugin import PluginDescriptor import os class Test(Screen): skin = """ - + """ def __init__(self, session, args = None): self.skin = Test.skin Screen.__init__(self, session) - self["text"] = Input("Please press OK!") + self["text"] = Input("1234", maxSize=True, type=Input.NUMBER) self["actions"] = NumberActionMap(["WizardActions", "InputActions"], { @@ -48,8 +49,8 @@ class Test(Screen): print "pressed", number self["text"].number(number) -def getPicturePaths(): - return [ "" ] +def main(session): + session.open(Test) -def getPlugins(): - return [("Test", "plugin to test some capabilities", "screen", "Test")] +def Plugins(): + return PluginDescriptor(name="Test", description="plugin to test some capabilities", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main)