@@ -585,16 +585,17 @@ def set_grid_color(self, r, g, b):
585585
586586 def set_grid_mode (self , mode = None ):
587587 """
588- Set node graph grid mode.
588+ Set node graph background grid mode.
589589
590- Note:
591- By default grid mode is set to "VIEWER_GRID_LINES".
590+ (default: :attr:`NodeGraphQt.constants.ViewerEnum.GRID_DISPLAY_LINES`).
591+
592+ See: :attr:`NodeGraphQt.constants.ViewerEnum`
592593
593- Node graph background types:
594+ .. code-block:: python
595+ :linenos:
594596
595- * :attr:`NodeGraphQt.constants.ViewerEnum.GRID_DISPLAY_NONE.value`
596- * :attr:`NodeGraphQt.constants.ViewerEnum.GRID_DISPLAY_DOTS.value`
597- * :attr:`NodeGraphQt.constants.ViewerEnum.GRID_DISPLAY_LINES.value`
597+ graph = NodeGraph()
598+ graph.set_grid_mode(ViewerEnum.CURVED.value)
598599
599600 Args:
600601 mode (int): background style.
@@ -695,7 +696,8 @@ def get_context_menu(self, menu):
695696 """
696697 Returns the context menu specified by the name.
697698
698- Menu Types:
699+ menu types:
700+
699701 - ``"graph"`` context menu from the node graph.
700702 - ``"nodes"`` context menu for the nodes.
701703
@@ -840,7 +842,8 @@ def disable_context_menu(self, disabled=True, name='all'):
840842 """
841843 Disable/Enable context menus from the node graph.
842844
843- Menu Types:
845+ menu types:
846+
844847 - ``"all"`` all context menus from the node graph.
845848 - ``"graph"`` context menu from the node graph.
846849 - ``"nodes"`` context menu for the nodes.
@@ -947,19 +950,19 @@ def set_pipe_slicing(self, mode=True):
947950
948951 def set_pipe_style (self , style = PipeLayoutEnum .CURVED .value ):
949952 """
950- Set node graph pipes to be drawn as straight, curved or angled.
953+ Set node graph pipes to be drawn as curved `(default)`, straight or angled.
951954
952- .. image :: _images/pipe_layout_types.gif
953- :width: 80%
955+ .. code-block :: python
956+ :linenos:
954957
955- Note:
956- By default pipe layout is set to "PIPE_LAYOUT_CURVED".
958+ graph = NodeGraph()
959+ graph.set_pipe_style(PipeLayoutEnum.CURVED.value)
957960
958- Pipe Layout Styles:
961+ See: :attr:`NodeGraphQt.constants.PipeLayoutEnum`
962+
963+ .. image:: _images/pipe_layout_types.gif
964+ :width: 80%
959965
960- * :attr:`NodeGraphQt.constants.PipeLayoutEnum.CURVED.value`
961- * :attr:`NodeGraphQt.constants.PipeLayoutEnum.STRAIGHT.value`
962- * :attr:`NodeGraphQt.constants.PipeLayoutEnum.ANGLE.value`
963966
964967 Args:
965968 style (int): pipe layout style.
0 commit comments