Karana.KUtils.MultibodyTUI.notify
=================================

.. py:module:: Karana.KUtils.MultibodyTUI.notify

.. autoapi-nested-parse::

   Notifier class to create TUI notifications.



Classes
-------

.. autoapisummary::

   Karana.KUtils.MultibodyTUI.notify.Notifier


Module Contents
---------------

.. py:class:: Notifier(on_notify: Callable | None = None)

   Helper to maintain a single, current notification message.

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


   .. py:property:: message

      Return the current notification message.


   .. py:method:: __str__()

      Return the Current notification message.



   .. py:method:: __call__(message: str)

      Notify an info message.



   .. py:method:: critical(message: str)

      Notify a critical error message.



   .. py:method:: error(message: str)

      Notify an error message.



   .. py:method:: warn(message: str)

      Notify a warn message.



   .. py:method:: info(message: str)

      Notify an info message.



   .. py:method:: clear()

      Reset the notification message.



   .. py:method:: clearPriority()

      Reset the notification message priority.

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



