标签:image close get can class rect pen callback ons
import appuifw,e32,httplib Conn=httplib.HTTPConnection("10.0.0.172", 80) Conn.putrequest("GET",图片地址) Conn.putheader(‘Accept‘, ‘*/*‘) Conn.endheaders() gif = Conn.getresponse().read() gi=open("e:\\henryczq\\yzm.gif","w") gi.write(gif) gi.close() img=Image.open("e:\\henryczq\\yzm.gif") def handle_redraw(rect): canvas.blit(img) canvas=appuifw.Canvas(redraw_callback=handle_redraw) appuifw.app.body=canvas appuifw.app.screen="normal" e32.ao_sleep(5)
标签:image close get can class rect pen callback ons
原文地址:http://www.cnblogs.com/kuihua/p/6092170.html