Advertisement
here2share

# s60_btn_rename.py

Jul 24th, 2017
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # s60_btn_rename.py
  2.  
  3. # note: didn't work on my Nokia 500
  4.  
  5. import appuifw,time,graphics,e32
  6.  
  7. appuifw.app.menu_key_text = u"Side A"
  8. appuifw.app.exit_key_text = u"Side B"
  9.  
  10. def quit():
  11.     global run
  12.     run=0
  13.  
  14. def draw(rect):
  15.     try: canvas.blit(img)
  16.     except: pass
  17.  
  18. img=None
  19. appuifw.app.screen='large'
  20. appuifw.app.orientation='portrait'
  21. appuifw.app.directional_pad=False
  22. img=graphics.Image.new((360,640))
  23. appuifw.app.body=canvas=appuifw.Canvas(redraw_callback=draw)
  24. # appuifw.app.exit_key_handler=quit
  25.  
  26.  
  27. wait = time.time()+6
  28. img.clear(0)
  29. draw(())
  30. while 1:
  31.     if time.time() > wait: break
  32.     e32.ao_sleep(0.02)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement