From 948213ba7e5d1bc6a9c4d7f5f9d35c53186b60d3 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 17 Oct 2006 22:37:39 +0000 Subject: ask user to reboot dreambox after software update --- lib/python/Screens/Console.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/python/Screens') diff --git a/lib/python/Screens/Console.py b/lib/python/Screens/Console.py index 98c373d5..03b0249b 100644 --- a/lib/python/Screens/Console.py +++ b/lib/python/Screens/Console.py @@ -10,10 +10,12 @@ class Console(Screen): """ - def __init__(self, session, title = "Console", cmdlist = None): + def __init__(self, session, title = "Console", cmdlist = None, finishedCallback = None): self.skin = Console.skin Screen.__init__(self, session) + self.finishedCallback = finishedCallback + self["text"] = ScrollLabel("") self["actions"] = ActionMap(["WizardActions", "DirectionActions"], { @@ -50,6 +52,8 @@ class Console(Screen): str = self["text"].getText() str += _("Execution finished!!"); self["text"].setText(str) + if self.finishedCallback is not None: + self.finishedCallback() def cancel(self): if self.run == len(self.cmdlist): -- cgit v1.2.3