WEB开发网      濠电娀娼ч崐濠氬疾椤愶附鍋熸い鏍ㄧ〒闂勫嫰鏌﹀Ο渚Ц闁诲氦顕ч湁婵犲﹤楠告禍鍓х磼鏉堛劌绗氶柟宄版嚇閹晠宕归銈嗘濠电偞鍨堕幐鎾磻閹捐秮褰掓偐閻戞﹩妫勯梺鎼炲妼鐎涒晝绮嬪澶樻晝闁挎繂鏌婇敃鍌涚厵閻庢稒锚閻忥絾绻濇繝鍐ㄧ伌闁诡垰鍟村畷鐔碱敂閸♀晙绱樺┑鐐差嚟婵儳螞閸曨剚鍙忛柍鍝勬噹缁€澶嬬箾閹存繄锛嶆鐐灲閹綊宕惰濡插鏌涢妸銉ヮ劉缂佸倸绉归弫鎾绘晸閿燂拷 ---闂備焦瀵уú鈺呭箯閿燂拷
开发学院手机开发Symbian 开发 Symbian S60 Python 编程指南 如何创建一个应用程... 阅读

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

 2010-08-30 00:06:00 来源:WEB开发网 闂備線娼уΛ鎾箯閿燂拷闂備礁鎲¢崹鐢垫崲閹扮増鍎嶆い鎺戝€甸崑鎾斥槈濞嗗秳娌紓鍌氱▌閹凤拷濠电姭鎷冮崨顓濈捕闂侀潧娲ゅú銊╁焵椤掍胶鈯曢柕鍥╁仧缁辩偤鏁撻敓锟�闂備線娼уΛ鎾箯閿燂拷  闂備胶枪缁绘鈻嶉弴銏犳瀬闁绘劖顐煎☉妯锋瀻闁归偊鍓涘▔姘舵⒑閸涘⿴娈旀繛灞傚妼閳绘捇骞嬪┑鎰濡炪倖姊婚崢褏鎲撮敓锟�
核心提示:Python代码def quit():appuifw.app.set_exit()app.exit_key_handler=quitdef quit():appuifw.app.set_exit()app.exit_key_handler=quit6,如何设定程序名称(标题)?Python代码appuifw.app.t

Python代码

def quit():

appuifw.app.set_exit()

app.exit_key_handler=quit

def quit():

appuifw.app.set_exit()

app.exit_key_handler=quit

6,如何设定程序名称(标题)?

Python代码

appuifw.app.title = u"SMS sending"

appuifw.app.title = u"SMS sending"

7,如果有必要,如何来分配有效的对象?

A facility called active object is used extensively on the Symbian OS to implement co-operative, non-preemptive scheduling within operating system threads. Preserving the responsiveness of the UI can be done with the help of active objects. This needs to be considered when designing the application logic. As a Python programmer, you typically need to take care of active objects as they relate to UI programming, and sockets. Can be tricky!

Python代码

# You need to import the e32 module

import e32

# create an instance of the active object

app_lock = e32.Ao_lock()

# starts a scheduler -> the script processes events (e.g. from the UI) until lock.signal() is

# callled.

app_lock.wait()

# stops the scheduler

app_lock.signal()

# You need to import the e32 module

import e32

# create an instance of the active object

app_lock = e32.Ao_lock()

# starts a scheduler -> the script processes events (e.g. from the UI) until lock.signal() is

# callled.

app_lock.wait()

# stops the scheduler

app_lock.signal()

8,如何设置程序主体?

Python代码

# body as Listbox:

appuifw.app.body = appuifw.Listbox(entries,shout)

# body as Listbox:

appuifw.app.body = appuifw.Listbox(entries,shout)

示例代码:

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

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

Tags:Symbian Python 编程

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