On Mon, 2002-10-21 at 11:48, Jakob Kemi wrote:
> 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.signal_handler_block(<handlerHandle>) and
signal_handler_unblock are what you are looking for. The handlerHandle
is returned from a connect() call.
> 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/
--
Steve McClure 430 10th St NW
Racemi Suite N-210
http://www.racemi.com Atlanta, GA 30318
[EMAIL PROTECTED] voice/fax: 404-892-5850
signature.asc
Description: This is a digitally signed message part
