Karana.KUtils.MultibodyTUI.notify#

Classes#

Notifier

Helper to maintain a single, current notification message

Module Contents#

class Karana.KUtils.MultibodyTUI.notify.Notifier(on_notify: Callable | None = None)[source]#

Helper to maintain a single, current notification message

The notification is replaced whenever a new notification is triggered with the same or higher priority.

property message#

The current notification message

__str__()[source]#

The current notification message

__call__(message: str)[source]#

Notify an info message

critical(message: str)[source]#

Notify a critical error message

error(message: str)[source]#

Notify an error message

warn(message: str)[source]#

Notify an error message

info(message: str)[source]#

Notify an info message

clear()[source]#

Reset the notification message

clear_priority()[source]#

Reset the notification message priority

This will keep the current message but allow lower priority messages to replace it.