From 1b01c9c3c05fdd42327406161bd5c51e05fbca19 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 28 Oct 2008 19:52:04 +0000 Subject: remove non working wrapper class to add a (unneeded) .get() call to eConsoleAppContainers.. so now all external plugins must remove this .get() calls... example: cont = eConsoleAppContainer() cont.appClosed.append(cb_func) # old was cont.appClosed.get().append(cb_func) --- lib/python/Screens/Console.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/python/Screens/Console.py') diff --git a/lib/python/Screens/Console.py b/lib/python/Screens/Console.py index 0ceba3ec..b57f2400 100644 --- a/lib/python/Screens/Console.py +++ b/lib/python/Screens/Console.py @@ -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): @@ -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) -- cgit v1.2.3