Wednesday, 16 January 2013

Application Body


Application Body
There are several possible objects that can be assigned to the application
body:
• a canvas that handles graphics on screen
• a form which is used to build complex forms that include combinations
of various input fields, such as text, numbers and lists
• a listbox that shows a list of items
• a text object that handles free-form text input (see the PyS60 documentation
for more information about this object).
You may increase the area that is reserved for the application body
using the appuifw.app.screen variable. Three different sizes are
provided (see Figure 4.4):
appuifw.app.screen = "full"
appuifw.app.screen = "large"
appuifw.app.screen = "normal"

Tabs
In the PyS60 documentation, you can find a description of the appuifw.
app.set tabs() function, which, unsurprisingly, is used to define tabs
for the navigation bar. Tabs are defined using a list of strings and callback
functions, in a similar way to the application menu.
Content Handler
A special Content handler object, which is part of the appuifw module,
is available for opening files of various types, such as images, photos
and web pages, using the standard viewer applications of the S60 platform.

No comments:

Post a Comment