views:

28

answers:

1

Hi, How do I use active object in python for s60? can anybody give me a code example?

+1  A: 

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).

Alex Martelli
thank, you, man! I'll look up in the link :)
Day_Dreamer
I write this in the source code and then run it On pythonScriptShell
Day_Dreamer
there is an option to run script
Day_Dreamer