(Redirected from Exception Harness)

Archived:Exception harness for PySymbian

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngAquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.

Article Metadata
Created: User:Kandyfloss (15 Apr 2008)
Last edited: hamishwillee (31 May 2013)

This method is used for debugging standalone applications in PySymbian

# Actual program is here.
1 / 0
import sys
import traceback
import e32
import appuifw
appuifw.app.screen="normal" # Restore screen to normal size.
appuifw.app.focus=None # Disable focus callback.
appuifw.app.body=body # Create and use a text control.
def quit():applock.signal()
appuifw.app.exit_key_handler=quit # Override softkey handler.
appuifw.app.menu=[(u"Exit", quit)] # Override application menu.
applock.wait() # Wait for exit key to be pressed.

More methods for debugging standalone applications in Python can be found in the article Archived:PySymbian debugging techniques.

This page was last modified on 31 May 2013, at 04:08.
40 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.