Scheme Link (link)¶
Scheme Link¶
-
class
orangecanvas.scheme.link.SchemeLink(source_node, source_channel, sink_node, sink_channel, enabled=True, properties=None, parent=None)¶ Bases:
PyQt5.QtCore.QObjectA instantiation of a link between two
SchemeNodeinstances in aScheme.Parameters: - source_node (
SchemeNode) – Source node. - source_channel (
OutputSignal) – The source widget’s signal. - sink_node (
SchemeNode) – The sink node. - sink_channel (
InputSignal) – The sink widget’s input signal. - properties (dict) – Additional link properties.
-
enabled_changed(enabled)¶ The link enabled state has changed
-
dynamic_enabled_changed(enabled)¶ The link dynamic enabled state has changed.
-
state_changed¶ Runtime link state has changed
-
class
State¶ Bases:
enum.IntEnumFlags indicating the runtime state of a link
-
Empty= 0¶ A link is empty when it has no value on it
-
Active= 1¶ A link is active when the source node provides a value on output
-
Pending= 2¶ A link is pending when it’s sink node has not yet been notified of a change (note that Empty|Pending is a valid state)
-
-
SchemeLink.source_type()¶ Return the type of the source channel.
-
SchemeLink.sink_type()¶ Return the type of the sink channel.
-
SchemeLink.is_dynamic()¶ Is this link dynamic.
-
SchemeLink.set_enabled(enabled)¶ Enable/disable the link.
-
SchemeLink.enabled¶ Is this link enabled.
-
SchemeLink.set_dynamic_enabled(enabled)¶ Enable/disable the dynamic link. Has no effect if the link is not dynamic.
-
SchemeLink.dynamic_enabled¶ Is this a dynamic link and is dynamic_enabled set to True
-
SchemeLink.set_runtime_state(state)¶ Set the link’s runtime state.
Parameters: state (SchemeLink.State) –
-
SchemeLink.runtime_state()¶ Returns: state Return type: SchemeLink.State
-
SchemeLink.set_tool_tip(tool_tip)¶ Set the link tool tip.
-
SchemeLink.tool_tip¶ Link tool tip.
- source_node (