[pygtk] update notification signals

Mikael Lindqvist li.mikael.spam at gmail.com
Wed Dec 6 17:24:13 WST 2006


Hello,

Is there a way of distinguishing if the value of a control is changed
by the user or by code in some part of my program?

To clarify, I'm setting the value of a spinbutton with code, i.e.
spinbutton.set_value(...) . This causes the value_changed signal to be
sent to my program. The behavior is the same as when a user modifies
the value. In the callback I need to be able to distinguishing what
caused the signal to be fired. Is this possible? Or, better yet, is it
possible somehow to not have the signal fired when you set the value
programatically?

Thanks in advance,

-- Mikael


More information about the pygtk mailing list