Skip to content

Commit

Permalink
canvas/items: Update names
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Dec 8, 2021
1 parent 7cee6e0 commit 11f755b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions orangecanvas/canvas/items/linkitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def QPainterPath_addLine(path, line):
return p1


_State = SchemeLink.State
_State = Link.State


class LinkItem(QGraphicsWidget):
Expand All @@ -325,19 +325,19 @@ class LinkItem(QGraphicsWidget):
Z_VALUE = 0

#: Runtime link state value
#: These are pulled from SchemeLink.State for ease of binding to it's
#: These are pulled from Link.State for ease of binding to its
#: state
State = SchemeLink.State
State = Link.State
#: The link has no associated state.
NoState = SchemeLink.NoState
NoState = Link.NoState
#: Link is empty; the source node does not have any value on output
Empty = SchemeLink.Empty
Empty = Link.Empty
#: Link is active; the source node has a valid value on output
Active = SchemeLink.Active
Active = Link.Active
#: The link is pending; the sink node is scheduled for update
Pending = SchemeLink.Pending
Pending = Link.Pending
#: The link's input is marked as invalidated (not yet available).
Invalidated = SchemeLink.Invalidated
Invalidated = Link.Invalidated

def __init__(self, parent=None, **kwargs):
# type: (Optional[QGraphicsItem], Any) -> None
Expand Down
2 changes: 1 addition & 1 deletion orangecanvas/canvas/items/nodeitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ def iconItem(standard_pixmap):
def from_node(cls, node: Node) -> 'NodeItem':
"""
Create an :class:`NodeItem` instance and initialize it from a
:class:`SchemeNode` instance.
:class:`Node` instance.
"""
self = cls()
self.initFrom(node)
Expand Down

0 comments on commit 11f755b

Please sign in to comment.