Listener

Inheritance Diagram

Inheritance diagram of tenpy.tools.events.Listener

Methods

Listener.__init__()

Listener.count(value, /)

Return number of occurrences of value.

Listener.index(value[, start, stop])

Return first index of value.

Class Attributes and Properties

Listener.callback

Alias for field number 1

Listener.extra_kwargs

Alias for field number 3

Listener.listener_id

Alias for field number 0

Listener.priority

Alias for field number 2

class tenpy.tools.events.Listener(listener_id, callback, priority, extra_kwargs)[source]

Bases: tuple

callback

Alias for field number 1

count(value, /)

Return number of occurrences of value.

extra_kwargs

Alias for field number 3

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

listener_id

Alias for field number 0

priority

Alias for field number 2