better resizing
[enigma2.git] / lib / python / Plugins / DemoPlugins / TestPlugin / plugin.py
index 856c2f3b95896ed69825266fb0ecf55b03beab44..c4e28fea560b1bd4f36fa5b4720632b20533b463 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="Delete everything on this Dreambox?", list=[(_("yes"), "yes"), (_("no"), "no"), (_("perhaps"), "perhaps"), (_("ask me tomorrow"), "ask me tomorrow"), (_("leave me alone with this s§&$!"), "yes")])
        
 def test(returnValue):
        print "You entered", returnValue