Skip to content

Commit b470bae

Browse files
committed
canvas/items: Update names
1 parent ea70d69 commit b470bae

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

orangecanvas/canvas/items/linkitem.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def QPainterPath_addLine(path, line):
299299
return p1
300300

301301

302-
_State = SchemeLink.State
302+
_State = Link.State
303303

304304

305305
class LinkItem(QGraphicsWidget):
@@ -325,19 +325,19 @@ class LinkItem(QGraphicsWidget):
325325
Z_VALUE = 0
326326

327327
#: Runtime link state value
328-
#: These are pulled from SchemeLink.State for ease of binding to it's
328+
#: These are pulled from Link.State for ease of binding to its
329329
#: state
330-
State = SchemeLink.State
330+
State = Link.State
331331
#: The link has no associated state.
332-
NoState = SchemeLink.NoState
332+
NoState = Link.NoState
333333
#: Link is empty; the source node does not have any value on output
334-
Empty = SchemeLink.Empty
334+
Empty = Link.Empty
335335
#: Link is active; the source node has a valid value on output
336-
Active = SchemeLink.Active
336+
Active = Link.Active
337337
#: The link is pending; the sink node is scheduled for update
338-
Pending = SchemeLink.Pending
338+
Pending = Link.Pending
339339
#: The link's input is marked as invalidated (not yet available).
340-
Invalidated = SchemeLink.Invalidated
340+
Invalidated = Link.Invalidated
341341

342342
def __init__(self, parent=None, **kwargs):
343343
# type: (Optional[QGraphicsItem], Any) -> None

orangecanvas/canvas/items/nodeitem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ def iconItem(standard_pixmap):
13921392
def from_node(cls, node: Node) -> 'NodeItem':
13931393
"""
13941394
Create an :class:`NodeItem` instance and initialize it from a
1395-
:class:`SchemeNode` instance.
1395+
:class:`Node` instance.
13961396
"""
13971397
self = cls()
13981398
self.initFrom(node)

0 commit comments

Comments
 (0)