X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/daaf4b6ba8fbddd81553e0076385220ef1a7f327..3ad1f5540aa20e5b8132ededc367d8f319b2d5dd:/lib/python/Plugins/test/plugin.py diff --git a/lib/python/Plugins/test/plugin.py b/lib/python/Plugins/test/plugin.py index 1500dd8d..e69de29b 100644 --- a/lib/python/Plugins/test/plugin.py +++ b/lib/python/Plugins/test/plugin.py @@ -1,56 +0,0 @@ -from enigma import * -from Screens.Screen import Screen -from Screens.MessageBox import MessageBox -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("1234", maxSize=True, type=Input.NUMBER) - - self["actions"] = NumberActionMap(["WizardActions", "InputActions"], - { - "ok": self.close, - "back": self.close, - "left": self.keyLeft, - "right": self.keyRight, - "1": self.keyNumberGlobal, - "2": self.keyNumberGlobal, - "3": self.keyNumberGlobal, - "4": self.keyNumberGlobal, - "5": self.keyNumberGlobal, - "6": self.keyNumberGlobal, - "7": self.keyNumberGlobal, - "8": self.keyNumberGlobal, - "9": self.keyNumberGlobal, - "0": self.keyNumberGlobal - }, -1) - - def keyLeft(self): - self["text"].left() - - def keyRight(self): - self["text"].right() - - def keyNumberGlobal(self, number): - print "pressed", number - self["text"].number(number) - -def main(session): - session.open(Test) - -def Plugins(): - return PluginDescriptor(name="Test", description="plugin to test some capabilities", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main)