Skip to content

Instantly share code, notes, and snippets.

@vtypal
Created August 20, 2010 12:41
Show Gist options
  • Save vtypal/540220 to your computer and use it in GitHub Desktop.
Save vtypal/540220 to your computer and use it in GitHub Desktop.
__all__ = [ "rys60" ]
__author__ = 'vtypal á gmail.cóm'
__version__ = '0.1'
import appuifw, e32
def quit():
app_lock.signal() # ---kill---
def util1():
#do something util
def util2():
#do something util
#~ ....
def util3():
#do something util
'''
Standard Configuration
'''
appuifw.app.exit_key_handler = quit
appuifw.app.title = u"PyS60_Basics"
appuifw.app.menu = [(u"utility-1", util1), (u"utility-2", util2), ..., (u"utility-3", util3), (u"Quit", quit)]
appuifw.app.screen = "large"
appuifw.app.orientation = "landscape"
app_lock = e32.Ao_lock() #app_lock is an object of the class Ao_lock (included in the e32 module)
app_lock.wait() # ---wait--- or press QUIT to exit
'''
Best PyS60 Sources From Nokia Wiki
http://wiki.forum.nokia.com/index.php/Category:Python
VPS Hosting
http://www.ryaka.com
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment