Notification
-
class Notification(**properties: Any)
Superclasses: Object
Holds information about a notification that should be shown to the user.
Methods
-
class Notification
-
clicked() → None
Tells WebKit the notification has been clicked.
This will emit the
Notification
::clicked signal.
-
close() → None
Closes the notification.
-
get_body() → str
Obtains the body for the notification.
-
get_id() → int
Obtains the unique id for the notification.
-
get_tag() → str | None
Obtains the tag identifier for the notification.
-
get_title() → str
Obtains the title for the notification.
Properties
-
class Notification
-
props.body: str
The body for the notification.
-
props.id: int
The unique id for the notification.
-
props.tag: str
The tag identifier for the notification.
-
props.title: str
The title for the notification.
Signals
-
class Notification.signals
-
clicked() → None
Emitted when a notification has been clicked. See clicked()
.
-
closed() → None
Emitted when a notification has been withdrawn.
The default handler will close the notification using libnotify, if built with
support for it.