Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #testing
- #6-8-2015
- import appuifw as A
- import graphics as G
- def quit(): lock.signal()
- lock = A.e32.Ao_lock()
- def gbr():
- A.app.screen = 'full'
- A.app.body = c = A.Canvas()
- A.app.exit_key_handler = quit
- im = G.Image.new(c.size)
- x1 = c.size[0]/16
- x2 = c.size[0]-c.size[0]/16
- y1 = c.size[1]/16
- y2 = c.size[1]-c.size[1]/16
- im.clear(0)
- im.rectangle((x1,y1,x2,y2),0xffff,fill=0xff)
- c.blit(im)
- im.save(u'e:\\tamvan.png')
- gbr()
- lock.wait()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement