Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from appuifw import app,Canvas
- from graphics import Image
- from e32 import ao_sleep as a0
- def quit():global run;run=0
- app.exit_key_handler = quit
- app.screen='full'
- app.body=c=Canvas()
- ly=c.size
- im=Image.new(ly)
- x=1
- def jalan():
- global x
- x-=5
- if x <= 0: x=max(ly)
- def gambar():
- im.text((x,50),u'PYS60',0xFFFF00,(u'',20))
- im.ellipse((x,80,x+30,110),fill=0x0f0f0)
- run=1
- while run:
- im.clear(0x1e1e1e)
- jalan()
- gambar()
- c.blit(im)
- a0(0.1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement