-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chetan Dandekar wrote:
> Dear All, > > Let me describe this issue with an example. I have a gtk.SpinButton > and a signal handler function 'on_value_changed' which is > triggered by the signal 'value_changed'. I want this handler to be > invoked if a user changes the SpinButton value using the input > devices. However, I don't want it to be invoked when I set the > SpinButton value using 'set_value' function from the backend. > > I know a couple of ways to achieve something similar: > > 1) using handler_block and handler_unblock functions of GObject > class: I can not use these functions because, they need an integer > id of the handler function. Since my signal handler is being > 'auto-connected' by a parent class, I don't have the handler_id > available. Try to save it by modifying the auto connection mechamisn, if it's not possible, just use a variable to block it manually. Johan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCQtPTvOdKxkYdUWQRAjZ9AJsHYYbSj6GIaYRCzz59zjKijkDbGQCeIwKN fBaKzVPx1OfS8ZYXUfMpMgE= =gYF3 -----END PGP SIGNATURE----- _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/