Node Item (nodeitem
)¶
Node Item¶
-
class
orangecanvas.canvas.items.nodeitem.
NodeItem
(widget_description=None, parent=None, **kwargs)[source]¶ Bases:
PyQt5.QtWidgets.QGraphicsWidget
An widget node item in the canvas.
-
positionChanged
¶ Signal emitted when the scene position of the node has changed.
-
anchorGeometryChanged
¶ Signal emitted when the geometry of the channel anchors changes.
-
activated
¶ Signal emitted when the item has been activated (by a mouse double click or a keyboard)
-
ANCHOR_SPAN_ANGLE
= 90¶ Span of the anchor in degrees
-
Z_VALUE
= 100¶ Z value of the item
-
title_
¶ Node title text.
-
setProcessingState
(state)[source]¶ Set the node processing state i.e. the node is processing (is busy) or is idle.
-
processingState_
¶ The node processing state.
-
progress_
¶ Node progress state.
-
setStatusMessage
(message)[source]¶ Set the node status message text.
This text is displayed below the node’s title.
-
setStateMessage
(message)[source]¶ Set a state message to display over the item.
Parameters: message (UserMessage) – Message to display. message.severity is used to determine the icon and message.contents is used as a tool tip.
-
newInputAnchor
()[source]¶ Create and return a new input
AnchorPoint
.
-
newOutputAnchor
()[source]¶ Create and return a new output
AnchorPoint
.
-
-
class
orangecanvas.canvas.items.nodeitem.
AnchorPoint
(parent=None, **kwargs)[source]¶ Bases:
PyQt5.QtWidgets.QGraphicsObject
A anchor indicator on the
NodeAnchorItem
.-
scenePositionChanged
(QPointF)¶ Signal emitted when the item’s scene position changes.
-
anchorDirectionChanged
(QPointF)¶ Signal emitted when the item’s anchorDirection changes.
-