[pygtk] DrawingArea and mouse events

Gian Mario Tagliaretti gianmt at gnome.org
Sun Nov 11 18:18:28 WST 2007


2007/11/9, Donn <donn.ingle a gmail.com>:

> Okay. It seems I am writing my own canvas then. I am stuck on GTL+2.8 for a
> bunch of reasons so I have not been able to run any of the popular canvas
> apps.

If you are stuck with 2.8 you should try GnomeCanvas then, it doesn't
use cairo for rendering though,

> I hope someone can point me in the direction of how to calculate when an x,y
> is within the area of an object - based on it's closed-path shape not a
> general bounding area. That's something I am all at sea about.

If you want to implement yet another canvas (please don't) have a look
at the source code of a good canvas and get inspiration (and code)
from there.

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list