pyGTK on Mouse over event ?
tiissa
tiissa at nonfree.fr
Wed Apr 20 17:20:26 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 ?
>
Yes.
But I guess by your question it doesn't work better than before. Sorry I
didn't help much. :/
More information about the Python-list
mailing list