Hi,

Assume that I've created a program where the "changed" signal emitted from 
spinbutton 'a' modifies the value of another spinbutton 'b' and vice versa. 
This of course leads to a loop since the spinbutton widgets keeps affecting 
each other. Is there some way to temporarily disable a widget from emitting 
a specific (or all signals, perhaps) signal.

So that I could write my program like this:

def on_a_changed(widget, *args):
        b.block_signal ("changed")
        b.set_value ( "something" )
        b.unblock_signal ("changed")

Thanks,
        Jakob Kemi
_______________________________________________
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