Annotation

class pywwt.Annotation(**kwargs: Any)[source]

Bases: HasTraits

Base class for annotations which provides settings common to all shapes.

Attributes Summary

hover_label

Specifies whether to render the label if the mouse is hovering over the annotation (bool)

label

Contains descriptive text for the annotation (str)

opacity

Specifies the opacity to be applied to the complete annotation (int)

shape

To be specified in the individual shape classes.

tag

Contains a string for use by the web client (str)

Methods Summary

remove()

Removes the specified annotation from the current view.

Attributes Documentation

hover_label

Specifies whether to render the label if the mouse is hovering over the annotation (bool)

label

Contains descriptive text for the annotation (str)

opacity

Specifies the opacity to be applied to the complete annotation (int)

shape = None

To be specified in the individual shape classes.

tag

Contains a string for use by the web client (str)

Methods Documentation

remove()[source]

Removes the specified annotation from the current view.