Skip to content

Commit d51d789

Browse files
committed
ref links
1 parent 578e6e9 commit d51d789

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

NodeGraphQt/base/node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def add_input(self, name='input', multi_input=False, display_name=True,
774774
color (tuple): initial port color (r, g, b) ``0-255``.
775775
data_type (str): port data type name.
776776
painter_func (function): custom function to override the drawing
777-
of the port shape see example:
777+
of the port shape see example: :ref:`Creating Custom Shapes`
778778
779779
Returns:
780780
NodeGraphQt.Port: the created port object.
@@ -814,7 +814,7 @@ def add_output(self, name='output', multi_output=True, display_name=True,
814814
color (tuple): initial port color (r, g, b) ``0-255``.
815815
data_type(str): port data type name.
816816
painter_func (function): custom function to override the drawing
817-
of the port shape see example:
817+
of the port shape see example: :ref:`Creating Custom Shapes`
818818
819819
Returns:
820820
NodeGraphQt.Port: the created port object.

docs/examples/ex_port.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ Here's an example function for drawing a triangle shaped port.
2727
2828
Args:
2929
painter (QtGui.QPainter): painter object.
30-
rect (QtCore.QRectF): port rect used to describe parameters
31-
needed to draw.
30+
rect (QtCore.QRectF): port rect used to describe parameters needed to draw.
3231
info (dict): information describing the ports current state.
3332
{
3433
'port_type': 'in',
@@ -100,8 +99,7 @@ Here's simpler example function for drawing a Square shaped port.
10099
101100
Args:
102101
painter (QtGui.QPainter): painter object.
103-
rect (QtCore.QRectF): port rect used to describe parameters
104-
needed to draw.
102+
rect (QtCore.QRectF): port rect used to describe parameters needed to draw.
105103
info (dict): information describing the ports current state.
106104
{
107105
'port_type': 'in',

0 commit comments

Comments
 (0)