Annotation Items (annotationitem
)¶
-
class
orangecanvas.canvas.items.annotationitem.
Annotation
[source]¶ Bases:
PyQt5.QtWidgets.QGraphicsWidget
Base class for annotations in the canvas scheme.
-
class
orangecanvas.canvas.items.annotationitem.
TextAnnotation
(parent=None, **kwargs)[source]¶ Bases:
orangecanvas.canvas.items.annotationitem.Annotation
Text annotation item for the canvas scheme.
Text interaction (if enabled) is started by double clicking the item.
-
editingFinished
¶ Emitted when the editing is finished (i.e. the item loses edit focus).
-
textEdited
¶ Emitted when the text content changes on user interaction.
-
contentChanged
¶ Emitted when the text annotation’s contents change (content or contentType changed)
-
-
class
orangecanvas.canvas.items.annotationitem.
ArrowAnnotation
(parent=None, line=None, **kwargs)[source]¶ Bases:
orangecanvas.canvas.items.annotationitem.Annotation
-
setAutoAdjustGeometry
(autoAdjust)[source]¶ If set to True then the geometry will be adjusted whenever the arrow is changed with setLine. Otherwise the geometry of the item is only updated so the line lies within the geometry() rect (i.e. it only grows). True by default
-
autoAdjustGeometry
()[source]¶ Should the geometry of the item be adjusted automatically when setLine is called.
-