[pygtk] The inevitable question: Images
A.T.Hofkamp
a.t.hofkamp at tue.nl
Tue Mar 31 15:25:03 WST 2009
Jason Benjamin wrote:
> I've read through the tutorial, and it shows how to use different images
> with buttons. It also shows a little bit on how to use pixmaps with
> DrawingArea. But I can't figure out how to place things like .gifs,
> .jpgs, etc... on the DrawingArea. It would be nice, because then I can
> get onto making my card game. Thanks for any help on this subject.
>
> BTW, I've researched this subject a lot and I haven't found an answer as
> of yet. It would be nice if I could get my understanding of pygtk
> finally ironed out.
You draw images on the DrawingArea in the same way you paint anything (like
lines or points) on it, namely via a Drawable:
gtk.gdk.Drawable.draw_image()
Sincerely,
Albert
More information about the pygtk
mailing list