Workflow Events (events)

class orangecanvas.scheme.events.WorkflowEvent[source]

Bases: PyQt5.QtCore.QEvent

NodeAdded = QEvent.Type(...)

Delivered to Scheme when a node has been added (NodeEvent)

NodeRemoved = QEvent.Type(...)

Delivered to Scheme when a node has been removed (NodeEvent)

LinkAdded = QEvent.Type(...)

A Link has been added to the scheme (LinkEvent)

LinkRemoved = QEvent.Type(...)

A Link has been removed from the scheme (LinkEvent)

InputLinkAdded = QEvent.Type(...)

An input Link has been added to a node (LinkEvent)

OutputLinkAdded = QEvent.Type(...)

An output Link has been added to a node (LinkEvent)

InputLinkRemoved = QEvent.Type(...)

An input Link has been removed from a node (LinkEvent)

OutputLinkRemoved = QEvent.Type(...)

An output Link has been removed from a node (LinkEvent)

NodeStateChange = QEvent.Type(...)

Node’s (runtime) state has changed (NodeEvent)

LinkStateChange = QEvent.Type(...)

Link’s (runtime) state has changed (LinkEvent)

InputLinkStateChange = QEvent.Type(...)

Input link’s (runtime) state has changed (LinkEvent)

OutputLinkStateChange = QEvent.Type(...)

Output link’s (runtime) state has changed (LinkEvent)

NodeActivateRequest = QEvent.Type(...)

Node user activate request (e.g. on double click in the canvas GUI)

WorkflowResourceChange = 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)[source]

Bases: orangecanvas.scheme.events.WorkflowEvent

An event notifying the receiver of an workflow link change.

This event is used with:

Parameters:
node() → SchemeNode[source]
Returns:node – The node instance.
Return type:SchemeNode
class orangecanvas.scheme.events.LinkEvent(etype, link)[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
Returns:link – The link instance.
Return type:SchemeLink
class orangecanvas.scheme.events.AnnotationEvent(etype, annotation)[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.
annotation() → BaseSchemeAnnotation[source]
Returns:annotation – The annotation instance.
Return type:BaseSchemeAnnotation
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

name() → str[source]

The name of the environment property.

oldValue() → Any[source]

The old value.

newValue() → Any[source]

The new value.