Re: [pygtk] Avoiding signal emission on changes from the backend

2005-03-25 Thread [EMAIL PROTECTED]
Thanks for ur replies, Johan and Christian, As Johan suggested, I think the best possible way is to use a flag such as 'ignore_signals' and set it while manipulating the value from background. I can not use seperate functions as suggested by Christian because, the ultimate goal is to _display_ th

Re: [pygtk] Avoiding signal emission on changes from the backend

2005-03-24 Thread Christian Reis
On Thu, Mar 24, 2005 at 09:44:02AM -0500, Chetan Dandekar wrote: > 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

Re: [pygtk] Avoiding signal emission on changes from the backend

2005-03-24 Thread Johan Dahlin
-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

[pygtk] Avoiding signal emission on changes from the backend

2005-03-24 Thread Chetan Dandekar
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 wan