aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Plugins/example.py')
-rw-r--r--lib/python/Plugins/example.py11
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)