On Mon, 2002-10-21 at 15:46, Jakob Kemi wrote:
> Thank you!
> 
> Is it possible to get this handle from gtk.glade.XML.signal_connect() or 
> gtk.glade.XML.signal_autoconnect() ?

I don't know. That would have been optimal for me but I didn't find an
answer and I'm not sure that I ever asked on the list.  For the limited
places that I needed it I just added a realize handler to the widget
then manually did the connect and saved the handle.

> 
> Regards,
>       Jakob Kemi
> 
> Steve McClure wrote:
> > 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/
> > 
> 
> 
> _______________________________________________
> 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

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to