gtk.DrawingArea + Cairo
Marco Pesenti Gritti
mpg at redhat.com
Wed Apr 18 07:59:05 EDT 2007
On Wed, 2007-04-18 at 08:49 -0300, Rafael Barbolo Lopes wrote:
> Hi, I was wondering if it is possible to receive signal events when
> mouse moves over a cairo painting inside a gtk.DrawingArea.
>
> I am trying to develop a grid widget. So the grid background is a
> gtk.DrawingArea and the grid's lines are cairo lines.
> I am trying to create an event that permits me to receive a signal
> when the mouse is over the lines.
Nope, there is no way with just gtk. You probably want to use a canvas
for this. What we are using in sugar is:
http://developer.mugshot.org/wiki/Hippo_Canvas
Unfortunately there is no documentation about it yet.
Marco
More information about the Devel
mailing list