who can help me,i want to open the image file with URl,
e.g, "http://www.wxpython.org/images/wxPython.jpg"
how to show this images by wxpython
i try to use wx.image ,but it's can't,
so help me,how to show the type of images
Thanks~!1
netmouse wrote:
who can help me,i want to open the image file with URl,
e.g, "http://www.wxpython.org/images/wxPython.jpg"
how to show this images by wxpython
i try to use wx.image ,but it's can't,
so help me,how to show the type of images
Fetch the file using urllib2 (or any other Python module that can fetch from a URL) into a string. Make a file-like object from that string data using StringIO, and then pass that object to wx.ImageFromStream. Or you may be able to skip the StrinIO object and just pass the object returned from urlopen(), although I've never tried that.
···
--
Robin Dunn
Software Craftsman