X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FDemoPlugins%2FTestPlugin%2Fplugin.py;fp=lib%2Fpython%2FPlugins%2FDemoPlugins%2FTestPlugin%2Fplugin.py;h=d4d24f32ef47c10b1a4d999031dcc9b56195be0c;hp=856c2f3b95896ed69825266fb0ecf55b03beab44;hb=7e13c14fb5b2d6e36e62fdfcdc49c3e1fef0183f;hpb=05e172a0522c77f55fe64e54411973f65a1deb93 diff --git a/lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py b/lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py index 856c2f3..d4d24f3 100644 --- a/lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py +++ b/lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py @@ -7,7 +7,7 @@ from Components.Input import Input from Components.GUIComponent import * from Components.Pixmap import Pixmap from Components.FileList import FileEntryComponent, FileList -from Screens.InputBox import InputBox +from Screens.ChoiceBox import ChoiceBox from Plugins.Plugin import PluginDescriptor import os @@ -69,7 +69,7 @@ class Test(Screen): self["text"].number(number) def main(session): - session.openWithCallback(test, InputBox, title="Hallo", text="1234", maxSize=True, type=Input.NUMBER) + session.openWithCallback(test, ChoiceBox, title="Hallo", list=[(_("yes"), "yes"), (_("no"), "no")]) def test(returnValue): print "You entered", returnValue