[pygtk] Image rendering

Jody Steele jmlsteele at stfu.ca
Mon Jun 6 09:14:51 WST 2005


One way to do it, maybe not the "correct" way, would to be create a
temporary file that contains the contents of the file you retrieved from
the URL, and then load that into the gtk.Image.

You probably want to look into the tempfile module.

Hope this helps.

Jody Steele



On Sun, 05 Jun 2005 15:37:05 -0400, Prash <getprashman at gmail.com> wrote:

> Hi Guys .. need some help. My task is to fetch image from a url and
> then display using gtk image.
>
> I'm fetching image like
> import urlib
> f=urllib.urlopen("http://someserver.x.jpg")
>
> f.read()  gives me a raw string. Now how do i display this using gtk  
> image??
>
> TIA
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the pygtk mailing list