Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # s60_btn_rename.py
- # note: didn't work on my Nokia 500
- import appuifw,time,graphics,e32
- appuifw.app.menu_key_text = u"Side A"
- appuifw.app.exit_key_text = u"Side B"
- def quit():
- global run
- run=0
- def draw(rect):
- try: canvas.blit(img)
- except: pass
- img=None
- appuifw.app.screen='large'
- appuifw.app.orientation='portrait'
- appuifw.app.directional_pad=False
- img=graphics.Image.new((360,640))
- appuifw.app.body=canvas=appuifw.Canvas(redraw_callback=draw)
- # appuifw.app.exit_key_handler=quit
- wait = time.time()+6
- img.clear(0)
- draw(())
- while 1:
- if time.time() > wait: break
- e32.ao_sleep(0.02)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement