- class param.parameterized.Watcher(*args, **kwargs)#
Object declaring a callback function to invoke when an Event is triggered on a watched item.
inst: Parameterized instance owning the watched Parameter, or None
cls: Parameterized class owning the watched Parameter
fn: Callback function to invoke when triggered by a watched Parameter
mode: ‘args’ for param.watch (call fn with PInfo object positional args), or ‘kwargs’ for param.watch_values (call fn with <param_name>:<new_value> keywords)
onlychanged: If True, only trigger for actual changes, not setting to the current value
parameter_names: List of Parameters to watch, by name
what: What to watch on the Parameters (either ‘value’ or a slot name)
- queued: Immediately invoke callbacks triggered during processing
of an Event (if False), or queue them up for processing later, after this event has been handled (if True)
- precedence: A numeric value which determines the precedence of
the watcher. Lower precedence values are executed with higher priority.
Return number of occurrences of value.
index(value[, start, stop])
Return first index of value.
Alias for field number 1
Alias for field number 2
Alias for field number 0
Alias for field number 3
Alias for field number 4
Alias for field number 5
Alias for field number 8
Alias for field number 7
Alias for field number 6