add ChoiceBox screen for asking simple multi choice questions
[enigma2.git] / lib / python / Plugins / DemoPlugins / TestPlugin / plugin.py
index 856c2f3..d4d24f3 100644 (file)
@@ -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