git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
beautify messagebox
[enigma2.git]
/
lib
/
python
/
Plugins
/
example.py
diff --git
a/lib/python/Plugins/example.py
b/lib/python/Plugins/example.py
index 5b96ee3783000183b9baf3e86c22255ab60d01f9..f20119124b2f789f75e5e2ae0f1816de259a9c5c 100644
(file)
--- 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 enigma import *
from Screens.Screen import Screen
+from Screens.MessageBox import MessageBox
+
from Components.ActionMap import ActionMap
from Components.Label import Label
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.skin = Example.skin
Screen.__init__(self, session)
- self["text"] = Label("
Small
test")
+ self["text"] = Label("
Big
test")
self["actions"] = ActionMap(["WizardActions"],
{
self["actions"] = ActionMap(["WizardActions"],
{
- "ok": self.ok
+ "ok": self.ok,
+ "back": self.close
}, -1)
def ok(self):
}, -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)
def main(session):
session.open(Example)