[sugar] adding xeyes to a sugar activity

Erik Blankinship erikb at mediamods.com
Mon Jul 9 17:45:07 EDT 2007


I would like to track the mouse position, ala xeyes, in a sugar activity
with many different gtk components.

Any ideas on how to do this?  I tried adding this code to the activity
subclass object:

self.add_events(gtk.gdk.MOTION_NOTIFY)
self.connect("motion_notify_event", self.motionNotifyEvent)

...and it follows the mouse, but loses the events when the mouse enters
another element in the activity (e.g., gtk.Button).

Ideas?

Thanks
Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20070709/9b3e30e5/attachment.htm 


More information about the Sugar mailing list