@@ -39,7 +39,8 @@ def parent_port(self):
3939 def add_input (self , name = 'input' , multi_input = False , display_name = True ,
4040 color = None , locked = False , painter_func = None ):
4141 """
42- This is not available for the `PortInputNode` class.
42+ Warnings:
43+ This is not available for the ``PortInputNode`` class.
4344 """
4445 raise PortRegistrationError (
4546 '"{}.add_input()" is not available for {}.'
@@ -48,6 +49,11 @@ def add_input(self, name='input', multi_input=False, display_name=True,
4849
4950 def add_output (self , name = 'output' , multi_output = True , display_name = True ,
5051 color = None , locked = False , painter_func = None ):
52+ """
53+ Warnings:
54+ This function is called by :meth:`NodeGraphQt.SubGraph.expand_group_node`
55+ and is not available for the ``PortInputNode`` class.
56+ """
5157 if self ._outputs :
5258 raise PortRegistrationError (
5359 '"{}.add_output()" only ONE output is allowed for this node.'
@@ -98,6 +104,11 @@ def parent_port(self):
98104
99105 def add_input (self , name = 'input' , multi_input = False , display_name = True ,
100106 color = None , locked = False , painter_func = None ):
107+ """
108+ Warnings:
109+ This function is called by :meth:`NodeGraphQt.SubGraph.expand_group_node`
110+ and is not available for the ``PortOutputNode`` class.
111+ """
101112 if self ._inputs :
102113 raise PortRegistrationError (
103114 '"{}.add_input()" only ONE input is allowed for this node.'
@@ -115,7 +126,8 @@ def add_input(self, name='input', multi_input=False, display_name=True,
115126 def add_output (self , name = 'output' , multi_output = True , display_name = True ,
116127 color = None , locked = False , painter_func = None ):
117128 """
118- This is not available for the `PortOutputNode` class.
129+ Warnings:
130+ This is not available for the ``PortOutputNode`` class.
119131 """
120132 raise PortRegistrationError (
121133 '"{}.add_output()" is not available for {}.'
0 commit comments