X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/5f808a16079e84f0a6f5b88a62faffc12d74a5e3..40f102b5f749e9d66236f0a1dafcbd403f10b013:/mytest.py diff --git a/mytest.py b/mytest.py index e953d8f3..5f574ad8 100644 --- a/mytest.py +++ b/mytest.py @@ -250,6 +250,7 @@ class Session: def openWithCallback(self, callback, screen, *arguments, **kwargs): dlg = self.open(screen, *arguments, **kwargs) dlg.callback = callback + return dlg def open(self, screen, *arguments, **kwargs): if len(self.dialog_stack) and not self.in_exec: @@ -278,7 +279,7 @@ class Session: # after close of the top dialog, the underlying will # gain focus again (for a short time), thus triggering # the onExec, which opens the dialog again, closing the loop. - # assert screen == self.current_dialog + assert screen == self.current_dialog self.current_dialog.returnValue = retval self.delay_timer.start(0, 1) @@ -414,6 +415,8 @@ def runScreenTest(): screensToRun.append(Screens.InfoBar.InfoBar) + ePythonConfigQuery.setQueryFunc(configfile.getResolvedKey) + def runNextScreen(session, screensToRun, *result): if result: quitMainloop(*result)