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_ the value in the GUI widget, and the widget
class triggers the value_changed signal, whenever the widget is updated to
a different value, i.e. whenever a new value is _displayed_ in the widget. 


- Chetan


>Original Message:
>-----------------
>From:  [EMAIL PROTECTED] (Christian Reis)
>Use separate functions for the two things; in fact, have the
>on_value_changed handler _call_ set_value when it needs to, and then do
>its own specific thing. You don't need any particular GTK+ features for
>this, and simpler code is better code.


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to