aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-01-07 12:27:49 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-01-07 12:27:49 +0000
commite21f1d8fb1bc528bf05adbb827295bd5dbf3ebc9 (patch)
tree5efa1c6fda4eb47e70989405bec2492e2d5679b2 /lib/python/Plugins
parente0b765190557d1344d027e8d4ffc5eb1d2a7f30f (diff)
downloadenigma2-e21f1d8fb1bc528bf05adbb827295bd5dbf3ebc9.tar.gz
enigma2-e21f1d8fb1bc528bf05adbb827295bd5dbf3ebc9.zip
Fixed very useful TestPlugin-plugin (callback wasn't called correctly)
Diffstat (limited to 'lib/python/Plugins')
-rw-r--r--lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py b/lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py
index 5456fb18..1f49a9e3 100644
--- a/lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py
+++ b/lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py
@@ -25,7 +25,7 @@ class Test(Screen):
self["actions"] = NumberActionMap(["WizardActions", "InputActions"],
{
- "ok": self.ok,
+ "ok": self.openTest,
"back": self.close,
# "left": self.keyLeft,
# "right": self.keyRight,
@@ -41,14 +41,14 @@ class Test(Screen):
"0": self.keyNumberGlobal
}, -1)
- self.onShown.append(self.openTest)
+ #self.onShown.append(self.openTest)
def openTest(self):
- self.session.openWithCallback(self.callback, MessageBox, _("Test-Messagebox?"))
+ self.session.openWithCallback(self.mycallback, MessageBox, _("Test-Messagebox?"))
# self.session.open(InputBox)
- def callback(self, answer):
+ def mycallback(self, answer):
print "answer:", answer
self.close()
@@ -70,7 +70,8 @@ class Test(Screen):
self["text"].number(number)
def main(session, **kwargs):
- session.openWithCallback(test, MessageBox, _("Test-Messagebox?"), timeout = 10)
+ session.open(Test)
+ #session.openWithCallback(test, MessageBox, _("Test-Messagebox?"), timeout = 10)
#session.openWithCallback(test, ChoiceBox, title="Delete everything on this Dreambox?", list=[(_("yes"), "yes"), (_("no"), "no"), (_("perhaps"), "perhaps"), (_("ask me tomorrow"), "ask me tomorrow"), (_("leave me alone with this!"), "yes")])
def test(returnValue):