Hi all,
I am trying to add the BUTTON_RELEASE_MASK to this widget, but 
connecting the signal with the callback, nothing happens. Here is a test 
script:

#! /usr/bin/env python
import gtk,pygtk

def on_button_released(*obj):
        print obj, 'button released'
        return False

win=gtk.Window()
win.set_size_request(250,250)
win.connect('destroy',lambda w:gtk.main_quit())
curve=gtk.Curve()
win.add(curve)
curve.add_events(gtk.gdk.BUTTON_RELEASE_MASK)
curve.connect('button_release_event', on_button_released)
win.show_all()
curve.reset()
gtk.main()

Thanks!
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to