Table of Contents
Lets take another look at the connect() call.
object.connect(name, func, func_data)
The return value from a connect() call is
an integer tag that identifies your callback. As stated above, you may have
as many callbacks per signal and per object as you need, and each will be
executed in turn, in the order they were attached.
This tag allows you to remove this callback from the list by using:
object.disconnect(id)
So, by passing in the tag returned by one of the signal connect methods, you can disconnect a signal handler.
You can also temporarily disable signal handlers with the
handler_block() and
handler_unblock() pair of methods.
object.handler_block(handler_id) object.handler_unblock(handler_id)