deepcave.utils.notification

# Notification

This module provides utilities for creating, updating and resetting notifications.

## Classes
  • Notification: Can create, update and reset a notification.

Classes

Notification()

Can create, update and reset a notification.

class deepcave.utils.notification.Notification[source]

Bases: object

Can create, update and reset a notification.

get_latest()[source]

Retrieve the latest notification and reset.

Returns:

The latest notification

Return type:

Optional[Tuple[str, str]]

reset()[source]

Reset the notification.

Return type:

None

update(message, color='danger')[source]

Update the notification.

Parameters:
  • message (str) – The message of the notification.

  • color (str, optional) – The color of the notification. Default is “danger”.

Return type:

None