from Components.GUIComponent import *
from Components.Pixmap import Pixmap
from Components.FileList import FileEntryComponent, FileList
+from Screens.ChoiceBox import ChoiceBox
from Plugins.Plugin import PluginDescriptor
import os
"0": self.keyNumberGlobal
}, -1)
+ self.onShown.append(self.openTest)
+
+ def openTest(self):
+ self.session.open(InputBox)
+
def keyLeft(self):
self["text"].left()
self["text"].number(number)
def main(session):
- session.open(Test)
+ 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 s§&$!"), "yes")])
+
+def test(returnValue):
+ print "You entered", returnValue
def Plugins():
return PluginDescriptor(name="Test", description="plugin to test some capabilities", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main)
+
+
\ No newline at end of file