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...
You can do something like this:
hadj = scrolled_window.get_hadjustment()
vadj = scrolled_window.get_vadjustment()
hoffset = hadj.get_value()
voffset = vadj.get_value()
You can add those values to your coordinates, to get the coordinates on the image itself.
David
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
