开发者

active object in python for s60

开发者 https://www.devze.com 2023-01-09 14:32 出处:网络
How do I use active object in python开发者_运维问答 for s60? can anybody give me a code example?There\'s a simple example here:

How do I use active object in python开发者_运维问答 for s60? can anybody give me a code example?


There's a simple example here:

def run(self):
    self.lock = e32.Ao_lock()
    self.lock.wait()
    # restore old title etc. and finish

def exit_callback(self):
    # unlocks the application and lets it finish
    self.lock.signal()

and that same URL also contains a detailed explanation (and more info, tutorial and otherwise, on Python for S60).

0

精彩评论

暂无评论...
验证码 换一张
取 消