WEB开发网
开发学院手机开发Symbian 开发 Symbian S60 Python 编程指南 如何创建一个应用程... 阅读

Symbian S60 Python 编程指南 如何创建一个应用程序

 2010-08-30 00:06:00 来源:WEB开发网   
核心提示:Python代码import appuifwimport e32def exit_key_handler():app_lock.signal()# create an instance of appuifw.Text()round = appuifw.Text()# change the style of the te

Python代码

import appuifw

import e32

def exit_key_handler():

app_lock.signal()

# create an instance of appuifw.Text()

round = appuifw.Text()

# change the style of the text

round.style = appuifw.STYLE_UNDERLINE

# set the text to 'hello'

round.set(u'hello')

# put the screen size to full screen

appuifw.app.screen='full'

# create an Active Object

app_lock = e32.Ao_lock()

# set the application body to Text

# by handing over "round" which is an instance of appuifw.Text() as definded above

appuifw.app.body = round

appuifw.app.exit_key_handler = exit_key_handler

app_lock.wait()

import appuifw

import e32

def exit_key_handler():

app_lock.signal()

# create an instance of appuifw.Text()

round = appuifw.Text()

# change the style of the text

round.style = appuifw.STYLE_UNDERLINE

# set the text to 'hello'

round.set(u'hello')

# put the screen size to full screen

appuifw.app.screen='full'

# create an Active Object

app_lock = e32.Ao_lock()

# set the application body to Text

# by handing over "round" which is an instance of appuifw.Text() as definded above

appuifw.app.body = round

appuifw.app.exit_key_handler = exit_key_handler

app_lock.wait()

Python代码

# body as Canvas:

appuifw.app.body=appuifw.Canvas(event_callback=None, redraw_callback=handle_redraw)

# body as Canvas:

appuifw.app.body=appuifw.Canvas(event_callback=None, redraw_callback=handle_redraw)

示例代码:

---------------------------------------------

Python代码

# Copyright (c) 2005 Jurgen Scheible

上一页  1 2 3 4 5 6 7 8 9 10 11  下一页

Tags:Symbian Python 编程

编辑录入:coldstar [复制链接] [打 印]
赞助商链接