[pygtk] spinbutton set value and signal
John Finlay
finlay at moeraki.com
Thu Nov 6 05:09:33 WST 2008
Frédéric wrote:
> On mercredi 05 novembre 2008, Frédéric wrote:
>
>
>> Is there a way to set the value of a spinbutton without having
>> its 'value-changed' signal emitted?
>>
>
> I mean set the value from the code, not from the GUI...
>
>
You could save the handler id and use handler_block() and
handler_unblock() around the code that sets the value to prevent the
handler from running. Other handlers connected to the signal will still
run though. Otherwise stop_emission should prevent all handlers from
being called.
John
More information about the pygtk
mailing list