pyGTK on Mouse over event ?
tiissa
tiissa at nonfree.fr
Wed Apr 20 17:47:50 EDT 2005
Domenique.Tilleuil at gmail.com wrote:
> def __init__(self):
> xml = gtk.glade.XML("/home/domenique/project1.glade")
> self.window = xml.get_widget("window1")
> self.img = xml.get_widget("image1")
> self.img.set_from_file("./test.svg")
> self.img.show()
> self.img.add_events(gtk.gdk.BUTTON_MOTION_MASK)
> xml.signal_autoconnect({
> 'on_window1_delete_event': self.on_window1_delete_event,
> 'on_window1_destroy_event': self.on_window1_destroy_event,
> 'on_image1_motion_notify_event': self.on_image1_motion_notify_event,
> 'on_image1_button_press_event': self.img_key_press,
> })
>
> This is the code so far. i've added the MOTION MASK to the image
> widget, is that what u ment ?
>
Actually I read too fast. I meant BUTTON_PRESS_MASK (not motion) for the
button_press_event.
For motion_notify_event, I guess it would be POINTER_MOTION_MASK (not
button).
More information about the Python-list
mailing list