remove comments from Makefile.am to make automatic parsing easier
[enigma2.git] / lib / python / Screens / Console.py
index 0ceba3ec106808ee290055040aa0fb43127a65ef..c6b156cfb7893fc7de31f9e357100ce98e4baddd 100644 (file)
@@ -33,8 +33,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 +55,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 +64,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)
+               self["text"].setText(self["text"].getText() + str)
\ No newline at end of file