Skip to content

Message

message

Message

Base class for a message.

handler_name: str 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