This question is about how the gnome canvas decides which canvas item is first to receive an event. I think I understand how it is supposed to work. In his book GTK+ / Gnome Application Development, Havoc Pennington says: "Events are propogated up the canvas item heirarchy until some item's event signal handler returns TRUE. Events are first sent to the bottommost or leaf canvas item and eventually make it up to the root item."
In his book Writing Gnome Applications, John Sheets agrees: "the Canvas continues to pass the event up the heirarchy, from child item to parent item, until an event handler returns TRUE or the event reaches the Canvas's root item." Unfortunately, it isn't working like this for me in my "cadvas.py" script at http://members.localnet.com/~blanding/cadvas. I want an "item specific" menu to pop up when I right click on a child item, such as a line, and a I want a zoom menu to pop up when I right click over an empty background area of the canvas. But as it turns out, the zoom menu always pops up, even when I right click on the child item. What am I missing? --Doug Blanding _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
