Scheme Annotations (annotations
)
Scheme Annotations
- class orangecanvas.scheme.annotations.BaseSchemeAnnotation[source]
Bases:
PyQt5.QtCore.QObject
Base class for scheme annotations.
- geometry_changed
Signal emitted when the geometry of the annotation changes
- class orangecanvas.scheme.annotations.SchemeArrowAnnotation(start_pos, end_pos, color='red', anchor=None, parent=None)[source]
Bases:
orangecanvas.scheme.annotations.BaseSchemeAnnotation
An arrow annotation in the scheme.
- set_geometry(geometry)[source]
Set the geometry of the arrow as a start and end position tuples (e.g.
set_geometry(((0, 0), (100, 0))
).
- geometry: Tuple[Tuple[float, float], Tuple[float, float]]
Return the start and end positions of the arrow.
- class orangecanvas.scheme.annotations.SchemeTextAnnotation(rect, text='', content_type='text/plain', font=None, anchor=None, parent=None)[source]
Bases:
orangecanvas.scheme.annotations.BaseSchemeAnnotation
Text annotation in the scheme.
- text_changed(str)
Signal emitted when the annotation text changes.
- property content_type
Return the annotations’ content type.
Currently this will be ‘text/plain’, ‘text/html’ or ‘text/rst’.
- property content
The annotation content.
How the content is interpreted/displayed depends on content_type.