[pygtk] spinbutton set value and signal
Raúl Núñez de Arenas Coronado
raul at dervishd.net
Thu Nov 6 04:49:14 WST 2008
Saluton Frédéric :)
On Wed, 5 Nov 2008 20:34:11 +0100, Frédéric dixit:
> Is there a way to set the value of a spinbutton without having
> its 'value-changed' signal emitted?
Only when using the keyboard to do that, but then you will receive
Without further information I assume that your problem is that you have
a handler for that signal but you don't want that handler to be executed
if you change the value by program (using "set_value()"). In that case
you can provide an additional parameter to the handler in the
"connect()" call and set that parameter to false before setting the
value by program, thus allowing the handler to perform its actions only
if the spinner's value is changed by the user. This is tricky, though,
and may not be a good idea.
If you can elaborate a bit I think we could provide you a better answer.
Raúl "DervishD" Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!
We are waiting for 13 Feb 2009 23:31:30 +0000 ...
More information about the pygtk