Notification

Added in version 2.8.

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.

Added in version 2.12.

close() None

Closes the notification.

Added in version 2.8.

get_body() str

Obtains the body for the notification.

Added in version 2.8.

get_id() int

Obtains the unique id for the notification.

Added in version 2.8.

get_tag() str | None

Obtains the tag identifier for the notification.

Added in version 2.16.

get_title() str

Obtains the title for the notification.

Added in version 2.8.

Properties

class Notification
props.body: str

The body for the notification.

Added in version 2.8.

props.id: int

The unique id for the notification.

Added in version 2.8.

props.tag: str

The tag identifier for the notification.

Added in version 2.16.

props.title: str

The title for the notification.

Added in version 2.8.

Signals

class Notification.signals
clicked() None

Emitted when a notification has been clicked. See clicked().

Added in version 2.12.

closed() None

Emitted when a notification has been withdrawn.

The default handler will close the notification using libnotify, if built with support for it.

Added in version 2.8.