yeah, i tried to do that once, and it works at first, but the problem is when the windows is scrolled.. the coordinates won't change, for example, the upper left corner will always be (0, 0), no matter if the image was scrolled or not... so i didn't find a way to know the position of a click on an image... not in a scrolled window anyway...

2006/10/31, Gian Mario Tagliaretti <[EMAIL PROTECTED]>:
2006/10/31, Pascal DUCHATELLE <[EMAIL PROTECTED]>:

> I wish to be able to get the coordinates of the point on which I click in an
> image (actually pdf plots converted to png format).

Hi Pascal,

gtk.Image does not have it's own gtk.gdk.window so it cannot receive
events, try to put the image into an eventbox and connect there.

ciao
--
Gian Mario Tagliaretti
http://www.parafernalia.org/pygtk/
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



--

"The best way to sell yourself is to show what you have produced, rather
than tell people what you know, what you want to do, or what degrees you
have." John Carmack
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to