projects
/
matthijs
/
upstream
/
mobilegtd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
43b4685
)
Make the exit button on an error window work.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 12 Aug 2009 20:33:24 +0000
(22:33 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 13 Aug 2009 09:58:43 +0000
(11:58 +0200)
The exit button appeared to work already on my device, but didn't work
with pys60-compat library yet.
src/main.py
patch
|
blob
|
history
diff --git
a/src/main.py
b/src/main.py
index f6fe14c8dd5e8bcdcc5394df37223c322c416497..8825582a1634161403dce82d97515ddd6c5d80a7 100644
(file)
--- 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.title=u'Error'
appuifw.app.body=t
- #appuifw.app.exit_key_handler=gui.exit
+ appuifw.app.exit_key_handler=lock.signal
lock.wait()
lock.wait()
+ # Exit app when script returns
+ appuifw.app.set_exit()
+
if logger:
logger.close()
if logger:
logger.close()