Annotations#

Added in version 5.18.

class Annotations(**properties: Any)#

Superclasses: Object

Use this object to manage Annotations. Each View has a single annotation manager and it is guaranteed to be the same for the lifetime of View.

Add AnnotationProviders with add_provider to display all the annotations added to each AnnotationProvider.

Methods#

class Annotations
add_provider(provider: AnnotationProvider) None#

Adds a new annotation provider.

Parameters:

provider – a AnnotationProvider.

remove_provider(provider: AnnotationProvider) bool#

Removes a provider.

Parameters:

provider – a AnnotationProvider.

Signals#

class Annotations.signals
changed() None#

The type of the None singleton.