EventSignal Class

Clients can connect to the event signal to receive events, or disconnect from the event signal to stop receiving events.

Constructor for internal use.

Inheritance
builtins.object
EventSignal

Constructor

EventSignal(obj, connection_changed_callback)

Parameters

Name Description
obj
Required
connection_changed_callback
Required

Methods

connect

Connects given callback function to the event signal, to be invoked when the event is signalled.

disconnect_all

Disconnects all registered callbacks.

is_connected
signal

connect

Connects given callback function to the event signal, to be invoked when the event is signalled.

connect(callback: Callable)

Parameters

Name Description
callback
Required

disconnect_all

Disconnects all registered callbacks.

disconnect_all()

is_connected

is_connected() -> bool

signal

signal(payload)

Parameters

Name Description
payload
Required