Workflow Events (events
)
- class orangecanvas.scheme.events.WorkflowEvent(etype: int | Type)[source]
Bases:
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: _EType, node: SchemeNode, pos: int = -1)[source]
Bases:
WorkflowEvent
An event notifying the receiver of an workflow link change.
This event is used with:
- Parameters:
etype (QEvent.Type)
node (SchemeNode)
pos (int)
- node() SchemeNode [source]
- Returns:
node – The node instance.
- Return type:
- class orangecanvas.scheme.events.LinkEvent(etype: _EType, link: SchemeLink, pos: int = -1)[source]
Bases:
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.
- link() SchemeLink [source]
- Returns:
link – The link instance.
- Return type:
- 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.
Added in version 0.1.16.
- class orangecanvas.scheme.events.AnnotationEvent(etype: _EType, annotation: BaseSchemeAnnotation, pos: int = -1)[source]
Bases:
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)
- annotation() BaseSchemeAnnotation [source]
- Returns:
annotation – The annotation instance.
- Return type:
- class orangecanvas.scheme.events.WorkflowEnvChanged(name: str, newValue: Any, oldValue: Any)[source]
Bases:
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