- if code == 33:
- self.currentDialog["channelSwitcher"].instance.push()
-
- if code >= 0x30 and code <= 0x39:
- try:
- self.currentDialog["menu"].instance.moveSelection(code - 0x31)
- except:
- self.currentDialog["list"].instance.moveSelection(code - 0x31)
+ def openWithCallback(self, callback, screen, *arguments):
+ dlg = self.open(screen, *arguments)
+ dlg.callback = callback
+
+ def open(self, screen, *arguments):
+ self.pushCurrent()
+ dlg = self.currentDialog = self.instantiateDialog(screen, *arguments)
+ dlg.isTmp = True
+ dlg.callback = None
+ self.execBegin()
+ return dlg
+
+ def keyEvent(self, code):
+ print "code " + str(code)