Advertisement
iful99

JAM DI CANVAS

Nov 13th, 2014
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import graphics,e32,sysinfo,time
  2. from appuifw import*
  3.  
  4. run=1
  5. def quit():global run;run=0
  6. app.exit_key_handler=quit
  7. app.screen = 'full'
  8. app.body=c=Canvas()
  9. size=sysinfo.display_pixels()
  10. im=graphics.Image.new(size)
  11.  
  12. while run:
  13.   im.clear(0)
  14.   jam=time.localtime()
  15.   im.text((40,130),u'jam='+str(jam[3])+u':'+str(jam[4])+u':'+str(jam[5]),0x00dd00,(u'',40))
  16.   c.blit(im)
  17.   e32.ao_sleep(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement