param.parameterized.Event#

class param.parameterized.Event(what, name, obj, cls, old, new, type)#

Object representing an event that triggers a Watcher.

what: What is being watched on the Parameter (either value or a slot name)

name: Name of the Parameter that was set or triggered

obj: Parameterized instance owning the watched Parameter, or None

cls: Parameterized class owning the watched Parameter

old: Previous value of the item being watched

new: New value of the item being watched

type: triggered if this event was triggered explicitly), changed if the item was set and watching for onlychanged, set if the item was set, or None if type not yet known

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

cls

Alias for field number 3

name

Alias for field number 1

new

Alias for field number 5

obj

Alias for field number 2

old

Alias for field number 4

type

Alias for field number 6

what

Alias for field number 0