From 7e13c14fb5b2d6e36e62fdfcdc49c3e1fef0183f Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 2 Mar 2006 00:27:32 +0000 Subject: add ChoiceBox screen for asking simple multi choice questions --- lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py') diff --git a/lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py b/lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py index 856c2f3b..d4d24f32 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 -- cgit v1.2.3