Archived:How to display information on the navigation pane in PySymbian
Aquivado: 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.
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
Tested with
Devices(s): Nokia N95, Nokia E90
Compatibility
Platform(s): S60 3rd Edition
Article
Keywords: appuifw2
Created: bogdan.galiceanu
(02 Jan 2009)
Last edited: hamishwillee
(08 May 2013)
Contents |
Overview
This article explains how to display information on the navigation pane in Python using the appuifw2 extension.
Preconditions
The appuifw2 extension is only available for S60 3rd Edition devices. The extension should be installed before using the following snippet.
Source code
import appuifw2
#Define the exit function
def quit():
myview.close()
appuifw2.app.exit_key_handler = quit
#Create a View class
class Main(appuifw2.View):
def __init__(self):
#Call the superclass __init__()
appuifw2.View.__init__(self)
#Initialize the properties
self.title = u"Main view"
#Create a view object and set it as the application's view
myview = Main()
appuifw2.app.view = myview
#Show text on the navigation pane
myview.navi_text = u"Navigation pane"
#Wait for the user to request the exit
myview.wait_for_close()
Postconditions
The text is displayed on the navigation pane.



(no comments yet)