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)
- selectedChanged
Signal emitted the the item’s selection state changes.
- ANCHOR_SPAN_ANGLE = 90
Span of the anchor in degrees
- Z_VALUE = 100
Z value of the item
- title_
Node title text.
- titleEditingStarted
Title editing has started
- titleEditingFinished
Title editing has finished
- 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(signal=None)[source]
Create and return a new input
AnchorPoint
.
- newOutputAnchor(signal=None)[source]
Create and return a new output
AnchorPoint
.
- class orangecanvas.canvas.items.nodeitem.AnchorPoint(parent: Optional[PyQt5.QtWidgets.QGraphicsItem] = None, signal: Optional[Union[orangecanvas.registry.description.InputSignal, orangecanvas.registry.description.OutputSignal]] = 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.
- signalChanged
Signal emitted when anchor’s Input/Output channel changes.