Skip to content

Message

Base class for a message.

Parameters:

Name Type Description Default
sender MessageTarget

The sender of the message / event.

required

handler_name() property

The name of the handler associated with this message.

prevent_default(prevent=True)

Suppress the default action(s). This will prevent handlers in any base classes from being called.

Parameters:

Name Type Description Default
prevent bool

True if the default action should be suppressed, or False if the default actions should be performed. Defaults to True.

True

stop(stop=True)

Stop propagation of the message to parent.

Parameters:

Name Type Description Default
stop bool

The stop flag. Defaults to True.

True