X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/8c2a83d6b2a60b2bd408ccdc6d5afd6da506912f..bb2987585250d140bc125d8e316f2381421447e4:/lib/python/Screens/Console.py diff --git a/lib/python/Screens/Console.py b/lib/python/Screens/Console.py index d71a7a82..2058c041 100644 --- a/lib/python/Screens/Console.py +++ b/lib/python/Screens/Console.py @@ -7,11 +7,10 @@ class Console(Screen): #TODO move this to skin.xml skin = """ - + """ def __init__(self, session, title = "Console", cmdlist = None, finishedCallback = None, closeOnSuccess = False): - self.skin = Console.skin Screen.__init__(self, session) self.finishedCallback = finishedCallback @@ -33,8 +32,8 @@ class Console(Screen): self.container = eConsoleAppContainer() self.run = 0 - self.container.appClosed.get().append(self.runFinished) - self.container.dataAvail.get().append(self.dataAvail) + self.container.appClosed.append(self.runFinished) + self.container.dataAvail.append(self.dataAvail) self.onLayoutFinish.append(self.startRun) # dont start before gui is finished def updateTitle(self): @@ -55,6 +54,7 @@ class Console(Screen): str = self["text"].getText() str += _("Execution finished!!"); self["text"].setText(str) + self["text"].lastPage() if self.finishedCallback is not None: self.finishedCallback() if not retval and self.closeOnSuccess: @@ -63,8 +63,8 @@ class Console(Screen): def cancel(self): if self.run == len(self.cmdlist): self.close() - self.container.appClosed.get().remove(self.runFinished) - self.container.dataAvail.get().remove(self.dataAvail) + self.container.appClosed.remove(self.runFinished) + self.container.dataAvail.remove(self.dataAvail) def dataAvail(self, str): self["text"].setText(self["text"].getText() + str)