@@ -217,7 +217,7 @@ def _on_connection_sliced(self, ports):
217217 @property
218218 def model (self ):
219219 """
220- Returns the model used to store the node graph data.
220+ Returns the model used for storing the node graph data.
221221
222222 Returns:
223223 NodeGraphQt.base.model.NodeGraphModel: node graph model.
@@ -227,7 +227,7 @@ def model(self):
227227 @property
228228 def widget (self ):
229229 """
230- Return the node graph widget .
230+ Return the wrapper widget containing the node graph.
231231
232232 Returns:
233233 QtWidgets.QWidget: node graph widget.
@@ -257,9 +257,13 @@ def viewer(self):
257257 """
258258 Returns the view interface used by the node graph.
259259
260- Note:
261- All functions in the `NodeViewer` should only be used internally
262- by the `NodeGraph` class.
260+ Warnings:
261+ Methods in the `NodeViewer` widget should only be used internally
262+ by `NodeGraphQt` components.
263+
264+ See Also:
265+ To add the node graph into a QLayout see
266+ :attr:`NodeGraph.widget` attribute.
263267
264268 Returns:
265269 NodeGraphQt.widgets.viewer.NodeViewer: viewer widget.
@@ -335,7 +339,11 @@ def add_properties_bin(self, prop_bin):
335339
336340 def undo_stack (self ):
337341 """
338- Returns the undo stack used in the node graph
342+ Returns the undo stack used in the node graph.
343+
344+ See Also:
345+ :meth:`NodeGraph.begin_undo()`,
346+ :meth:`NodeGraph.end_undo()`
339347
340348 Returns:
341349 QtWidgets.QUndoStack: undo stack.
@@ -346,6 +354,11 @@ def clear_undo_stack(self):
346354 """
347355 Clears the undo stack.
348356 (convenience function to :meth:`NodeGraph.undo_stack().clear`)
357+
358+ See Also:
359+ :meth:`NodeGraph.begin_undo()`,
360+ :meth:`NodeGraph.end_undo()`,
361+ :meth:`NodeGraph.undo_stack()`
349362 """
350363 self ._undo_stack .clear ()
351364
@@ -408,15 +421,18 @@ def set_acyclic(self, mode=False):
408421 def set_pipe_style (self , style = PIPE_LAYOUT_CURVED ):
409422 """
410423 Set node graph pipes to be drawn as straight, curved or angled.
411- By default all pipes are set curved.
412424
413- Pipe Styles:
414- ``NodeGraphQt.constants.PIPE_LAYOUT_CURVED``
415- ``NodeGraphQt.constants.PIPE_LAYOUT_STRAIGHT``
416- ``NodeGraphQt.constants.PIPE_LAYOUT_ANGLE``
425+ Note:
426+ By default all pipes are set curved.
427+
428+ Pipe Layout Styles:
429+
430+ * :attr:`NodeGraphQt.constants.PIPE_LAYOUT_CURVED`
431+ * :attr:`NodeGraphQt.constants.PIPE_LAYOUT_STRAIGHT`
432+ * :attr:`NodeGraphQt.constants.PIPE_LAYOUT_ANGLE`
417433
418434 Args:
419- style (int): pipe style.
435+ style (int): pipe layout style.
420436 """
421437 pipe_max = max ([PIPE_LAYOUT_CURVED ,
422438 PIPE_LAYOUT_STRAIGHT ,
@@ -478,7 +494,8 @@ def registered_nodes(self):
478494 """
479495 Return a list of all node types that have been registered.
480496
481- To register a node see :meth:`NodeGraph.register_node`
497+ See Also:
498+ To register a node :meth:`NodeGraph.register_node`
482499
483500 Returns:
484501 list[str]: list of node type identifiers.
@@ -500,7 +517,8 @@ def create_node(self, node_type, name=None, selected=True, color=None,
500517 """
501518 Create a new node in the node graph.
502519
503- (To list all node types see :meth:`NodeGraph.registered_nodes`)
520+ See Also:
521+ To list all node types :meth:`NodeGraph.registered_nodes`
504522
505523 Args:
506524 node_type (str): node instance type.
@@ -949,7 +967,8 @@ def disable_nodes(self, nodes, mode=None):
949967 """
950968 Set weather to Disable or Enable specified nodes.
951969
952- see: :meth:`NodeObject.set_disabled`
970+ See Also:
971+ :meth:`NodeObject.set_disabled`
953972
954973 Args:
955974 nodes (list[NodeGraphQt.BaseNode]): list of node instances.
@@ -973,7 +992,9 @@ def question_dialog(self, text, title='Node Graph'):
973992 Prompts a question open dialog with "Yes" and "No" buttons in
974993 the node graph.
975994
976- (convenience function to :meth:`NodeGraph.viewer().question_dialog`)
995+ Note:
996+ This is a convenience function to
997+ :meth:`NodeGraph.viewer().question_dialog`)
977998
978999 Args:
9791000 text (str): question text.
@@ -988,7 +1009,9 @@ def message_dialog(self, text, title='Node Graph'):
9881009 """
9891010 Prompts a file open dialog in the node graph.
9901011
991- (convenience function to :meth:`NodeGraph.viewer().message_dialog`)
1012+ Note:
1013+ This is a convenience function to
1014+ :meth:`NodeGraph.viewer().message_dialog`
9921015
9931016 Args:
9941017 text (str): message text.
@@ -1000,7 +1023,9 @@ def load_dialog(self, current_dir=None, ext=None):
10001023 """
10011024 Prompts a file open dialog in the node graph.
10021025
1003- (convenience function to :meth:`NodeGraph.viewer().load_dialog`)
1026+ Note:
1027+ This is a convenience function to
1028+ :meth:`NodeGraph.viewer().load_dialog`
10041029
10051030 Args:
10061031 current_dir (str): path to a directory.
@@ -1015,7 +1040,9 @@ def save_dialog(self, current_dir=None, ext=None):
10151040 """
10161041 Prompts a file save dialog in the node graph.
10171042
1018- (convenience function to :meth:`NodeGraph.viewer().save_dialog`)
1043+ Note:
1044+ This is a convenience function to
1045+ :meth:`NodeGraph.viewer().save_dialog`
10191046
10201047 Args:
10211048 current_dir (str): path to a directory.
0 commit comments