Karana.KUtils.MultibodyTUI.notify#

Notifier class to create TUI notifications.

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#

Return the current notification message.

__str__()[source]#

Return 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 a warn message.

info(message: str)[source]#

Notify an info message.

clear()[source]#

Reset the notification message.

clearPriority()[source]#

Reset the notification message priority.

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