pyGTK on Mouse over event ?
Domenique.Tilleuil at gmail.com
Domenique.Tilleuil at gmail.com
Wed Apr 20 17:01:38 EDT 2005
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 ?
More information about the Python-list
mailing list