From cf46ba4c8ffa4233da9fe74d5f4fe4f62c9c8250 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 12 Aug 2009 22:33:24 +0200 Subject: [PATCH] Make the exit button on an error window work. The exit button appeared to work already on my device, but didn't work with pys60-compat library yet. --- src/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index f6fe14c..8825582 100644 --- a/src/main.py +++ b/src/main.py @@ -70,9 +70,12 @@ def run(): appuifw.app.title=u'Error' appuifw.app.body=t - #appuifw.app.exit_key_handler=gui.exit + appuifw.app.exit_key_handler=lock.signal lock.wait() + # Exit app when script returns + appuifw.app.set_exit() + if logger: logger.close() -- 2.30.2