ignore_callback

echo.ignore_callback(instance, *props)[source]

Temporarily ignore any callbacks from one or more callback properties

This is a context manager. Within the context block, no callbacks will be issued. In contrast with delay_callback, no callbacks will be called on exiting the context manager

Parameters
instance

An instance object with callback properties

*propsstr

One or more properties within instance to ignore

Examples

with ignore_callback(foo, 'bar', 'baz'):
        f.bar = 20
        f.baz = 30
        f.bar = 10
print('done')  # no callbacks called