Before going into the case, a few words about the application domain: Mobile
applications must be built to ?¬?t the relatively small size of the phone display and the
layout of a S60 application. Figure 8.2 shows the user interface layout and its relation
to the services available in the appuifw API. Reading the UI layout ?¬?gure from the top,
the main application window may be set up to be occupied by a UI control/widget. A
INTRODUCTION AND OBJECTIVES 161
Title
???appuifw.app.title???
Left soft key
???appuifw.app.menu???
Right soft key
???appuifw.app.exit_key_handler???
Dialog
???appuifw.
???
Navigation pane
???appuifw.app.enable_tabs(), acativate_tab()???
Main application window
???appuifw.app.body???
FIGURE 8.2 Python for S60 UI layout (Nokia, 2004)
FIGURE 8.1 Architecture for application development with Python for S60
162 MOBILE PHONE APPLICATIONS USING A PYTHON FRAMEWORK
multiview application can show its different views as tabs in the navigation pane and
react as the user navigates between tabs??”typically, by pressing the left or right
selection buttons. Dialogs always take precedence over other UI controls and appear
on top of them. The application uses two soft key buttons (left and right soft keys) to
navigate in the application. Usually, the left soft key action in the dialogs is to accept,
and the right soft key to cancel or navigate back.
Pages:
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307