pygui - showing an image

David Robinow drobinow at gmail.com
Tue Sep 22 22:40:16 EDT 2009


On Tue, Sep 22, 2009 at 9:26 PM, kyle schalm <kyle.schalm at gmail.com> wrote:
> hello, i wonder what the chances are that anyone here uses pygui?
> it looks pretty good, but i just started using it (version 2.05) and
> can't figure out how to just display a window with an image in it. i
> tried:
>
> image = Image('foo.png')
> window.place(image) -- error message
> window.add(image)   -- nothing shows
>
> then i tried getting a canvas involved but that seemed to make things worse.
> any hints are appreciated. thanks,
> -kyle
> --
> http://mail.python.org/mailman/listinfo/python-list
>
There's an example in Tests/21-image.py
See if that helps.



More information about the Python-list mailing list