git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
display image version a bit more nicely
[enigma2.git]
/
lib
/
python
/
Plugins
/
test
/
plugin.py
diff --git
a/lib/python/Plugins/test/plugin.py
b/lib/python/Plugins/test/plugin.py
index c08a986f4d70f680e77f13270e5818707e843f14..1500dd8dbdee7ba12fe83d6ccd6bfe216586a198 100644
(file)
--- 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 Components.Label import Label
from Components.Input import Input
from Components.GUIComponent import *
+from Plugins.Plugin import PluginDescriptor
import os
class Test(Screen):
skin = """
<screen position="100,100" size="550,400" title="Test" >
import os
class Test(Screen):
skin = """
<screen position="100,100" size="550,400" title="Test" >
- <widget name="text" position="0,0" size="550,
400
" font="Regular;20" />
+ <widget name="text" position="0,0" size="550,
25
" font="Regular;20" />
</screen>"""
def __init__(self, session, args = None):
self.skin = Test.skin
Screen.__init__(self, session)
</screen>"""
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"],
{
self["actions"] = NumberActionMap(["WizardActions", "InputActions"],
{
@@
-48,8
+49,8
@@
class Test(Screen):
print "pressed", number
self["text"].number(number)
print "pressed", number
self["text"].number(number)
-def
getPicturePaths(
):
- return [ "" ]
+def
main(session
):
+ session.open(Test)
-def
get
Plugins():
- 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)