diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-23 05:19:57 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-23 05:19:57 +0000 |
| commit | b2d6392a3b41f870b5615c8e19b26496e56f6310 (patch) | |
| tree | df2f0d446d2afb704941d7cd4e7e2262b1f3a660 /lib/python/Plugins/example.py | |
| parent | 7ae6b9f9b79a7fb2a94fcc4863f1cfdade7ce19b (diff) | |
| download | enigma2-b2d6392a3b41f870b5615c8e19b26496e56f6310.tar.gz enigma2-b2d6392a3b41f870b5615c8e19b26496e56f6310.zip | |
beautify messagebox
add functionality to the messagebox
Diffstat (limited to 'lib/python/Plugins/example.py')
| -rw-r--r-- | lib/python/Plugins/example.py | 11 |
1 files changed, 7 insertions, 4 deletions
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) |
