Workflow Events (events
)¶
- class orangecanvas.scheme.events.WorkflowEvent[source]¶
Bases:
PyQt5.QtCore.QEvent
- NodeActivateRequest = QEvent.Type(...)¶
Node user activate request (e.g. on double click in the canvas GUI)
- WorkflowEnvironmentChange = QEvent.Type(...)¶
Workflow resource changed (e.g. work directory, env variable)
- AnnotationAdded = QEvent.Type(...)¶
- AnnotationRemoved = QEvent.Type(...)¶
- AnnotationChange = QEvent.Type(...)¶
- ActivateParentRequest = QEvent.Type(...)¶
Request activation (show and raise) of the window containing the workflow view
- class orangecanvas.scheme.events.NodeEvent(etype, node, pos=- 1)[source]¶
Bases:
orangecanvas.scheme.events.WorkflowEvent
An event notifying the receiver of an workflow link change.
This event is used with:
- Parameters
etype (QEvent.Type) –
node (SchemeNode) –
pos (int) –
- class orangecanvas.scheme.events.LinkEvent(etype, link, pos=- 1)[source]¶
Bases:
orangecanvas.scheme.events.WorkflowEvent
An event notifying the receiver of an workflow link change.
This event is used with:
- Parameters
etype (QEvent.Type) –
link (SchemeLink) – The link subject to change
pos (int) – The link position index.
- pos() int [source]¶
The index position into which the link was inserted.
For LinkAdded/LinkRemoved this is the index in the Scheme.links sequence from which the link was removed or was inserted into.
For InputLinkAdded/InputLinkRemoved it is the sequential position in the input links to the sink node.
For OutputLinkAdded/OutputLinkRemoved it is the sequential position in the output links from the source node.
New in version 0.1.16.
- class orangecanvas.scheme.events.AnnotationEvent(etype, annotation, pos=- 1)[source]¶
Bases:
orangecanvas.scheme.events.WorkflowEvent
An event notifying the receiver of an workflow annotation changes
This event is used with:
- Parameters
etype (QEvent.Type) –
annotation (BaseSchemeAnnotation) – The annotation that is a subject of change.
pos (int) –
- class orangecanvas.scheme.events.WorkflowEnvChanged(name, newValue, oldValue)[source]¶
Bases:
orangecanvas.scheme.events.WorkflowEvent
An event notifying the receiver of a workflow environment change.
- Parameters
name (str) – The name of the environment property that was changed
newValue (Any) – The new value
oldValue (Any) – The old value
See also
Scheme.runtime_env