Re: [pygtk] Drawing over a scrolled image

2009-09-15 Thread Fabrice DELENTE
> Note the first two sentences in the PyGTK DrawingArea reference > documentation: Thanks for your detailed answer, I tend to skim over the reference as I find it confusing at times. Sorry, I should have read more in depth. À bientôt. -- Fabrice DELENTE SVP, ne m'envoyez pas de pièces jointes

Re: [pygtk] Drawing over a scrolled image

2009-09-15 Thread A.T.Hofkamp
Fabrice Delente wrote: > I wasn't specific enough: when I say image, it's in fact a PNG file; I load > it in a gtk.Image with load_from_file, and I didn't find any method in > gtk.DrawingArea to display a pixbuf (as gtk.Image contains a pixbuf). Note the first two sentences in the PyGTK Drawing

Re: [pygtk] Drawing over a scrolled image

2009-09-15 Thread Fabrice Delente
2009/9/14 A.T.Hofkamp > I think you have two options: > a. Modify the image before displaying it. > b. Don't use a gtk.Image widget. > > As for the second option, if you want more than just displaying an image, > gtk.Image is not what you want to have. Instead, use a gtk.DrawingArea in > the view

Re: [pygtk] Drawing over a scrolled image

2009-09-13 Thread A.T.Hofkamp
Fabrice DELENTE wrote: > Hello. > > I'm trying to draw over a scrolled image; my image is loaded as a gtk.image > in a scrolled window in which I added a viewport; this works ok. > > As I need to draw over this image, I tried to add a gtk.DrawingArea to the > gtk.Image, but as gtk.Image is not a

[pygtk] Drawing over a scrolled image

2009-09-13 Thread Fabrice DELENTE
Hello. I'm trying to draw over a scrolled image; my image is loaded as a gtk.image in a scrolled window in which I added a viewport; this works ok. As I need to draw over this image, I tried to add a gtk.DrawingArea to the gtk.Image, but as gtk.Image is not a container it can't work... Is there