From b2d6392a3b41f870b5615c8e19b26496e56f6310 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 23 Dec 2005 05:19:57 +0000 Subject: beautify messagebox add functionality to the messagebox --- lib/python/Plugins/example.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lib/python/Plugins/example.py') diff --git a/lib/python/Plugins/example.py b/lib/python/Plugins/example.py index 5b96ee37..f2011912 100644 --- a/lib/python/Plugins/example.py +++ b/lib/python/Plugins/example.py @@ -1,5 +1,7 @@ from enigma import * from Screens.Screen import Screen +from Screens.MessageBox import MessageBox + from Components.ActionMap import ActionMap from Components.Label import Label @@ -13,16 +15,17 @@ class Example(Screen): self.skin = Example.skin Screen.__init__(self, session) - self["text"] = Label("Small test") + self["text"] = Label("Big test") self["actions"] = ActionMap(["WizardActions"], { - "ok": self.ok + "ok": self.ok, + "back": self.close }, -1) def ok(self): - self.close() - + self.session.open(MessageBox, "Bla bla bla bla bla bla bla bla\n bla bla bla bla bla bla\n bla bla bla bla bla bla\n bla bla bla bla bla", MessageBox.TYPE_YESNO) + def main(session): session.open(Example) -- cgit v1.2.3