@@ -265,8 +265,8 @@ def viewer(self):
265265 Returns the view interface used by the node graph.
266266
267267 Warnings:
268- Methods in the `NodeViewer` are used internally
269- by `NodeGraphQt` components.
268+ Methods in the `` NodeViewer` ` are used internally
269+ by `` NodeGraphQt` ` components.
270270
271271 See Also:
272272 :attr:`NodeGraph.widget` for adding the node graph into a
@@ -279,7 +279,7 @@ def viewer(self):
279279
280280 def scene (self ):
281281 """
282- Return the scene object.
282+ Returns the ``QGraphicsScene`` object used in the node graph .
283283
284284 Returns:
285285 NodeGraphQt.widgets.scene.NodeScene: node scene.
@@ -421,9 +421,9 @@ def get_context_menu(self, menu):
421421 """
422422 Returns the context menu specified by the name.
423423
424- Menu types :
425- "graph" - context menu from the node graph.
426- "nodes" - context menu for the nodes.
424+ Menu Types :
425+ - `` "graph"`` context menu from the node graph.
426+ - `` "nodes"`` context menu for the nodes.
427427
428428 Args:
429429 menu (str): menu name.
@@ -466,13 +466,13 @@ def acyclic(self):
466466 Returns true if the current node graph is acyclic.
467467
468468 Returns:
469- bool: true if acyclic (default: True).
469+ bool: true if acyclic (default: `` True`` ).
470470 """
471471 return self ._model .acyclic
472472
473473 def set_acyclic (self , mode = False ):
474474 """
475- Enable the node graph to be a acyclic graph. (default= False)
475+ Enable the node graph to be a acyclic graph. (default: `` False`` )
476476
477477 Args:
478478 mode (bool): true to enable acyclic.
@@ -520,10 +520,10 @@ def reset_zoom(self):
520520
521521 def set_zoom (self , zoom = 0 ):
522522 """
523- Set the zoom factor of the Node Graph the default is 0.0
523+ Set the zoom factor of the Node Graph the default is `` 0.0``
524524
525525 Args:
526- zoom (float): zoom factor (max zoom out -0.9 / max zoom in 2.0)
526+ zoom (float): zoom factor (max zoom out `` -0.9`` / max zoom in `` 2.0`` )
527527 """
528528 self ._viewer .set_zoom (zoom )
529529
@@ -586,9 +586,9 @@ def create_node(self, node_type, name=None, selected=True, color=None,
586586 node_type (str): node instance type.
587587 name (str): set name of the node.
588588 selected (bool): set created node to be selected.
589- color (tuple or str): node color (255, 255, 255) or ' #FFFFFF' .
590- text_color (tuple or str): node text color (255, 255, 255) or ' #FFFFFF' .
591- pos (list[int, int]): initial x, y position for the node (default: (0, 0)).
589+ color (tuple or str): node color `` (255, 255, 255)`` or ``" #FFFFFF"`` .
590+ text_color (tuple or str): text color `` (255, 255, 255)`` or ``" #FFFFFF"`` .
591+ pos (list[int, int]): initial x, y position for the node (default: `` (0, 0)`` ).
592592
593593 Returns:
594594 NodeGraphQt.BaseNode: the created instance of the node.
@@ -734,7 +734,7 @@ def get_node_by_id(self, node_id=None):
734734 Returns the node from the node id string.
735735
736736 Args:
737- node_id (str): node id (:meth :`NodeObject.id`)
737+ node_id (str): node id (:attr :`NodeObject.id`)
738738
739739 Returns:
740740 NodeGraphQt.NodeObject: node object.
@@ -1053,7 +1053,7 @@ def disable_nodes(self, nodes, mode=None):
10531053
10541054 def question_dialog (self , text , title = 'Node Graph' ):
10551055 """
1056- Prompts a question open dialog with "Yes" and "No" buttons in
1056+ Prompts a question open dialog with `` "Yes"`` and `` "No"`` buttons in
10571057 the node graph.
10581058
10591059 Note:
@@ -1093,7 +1093,7 @@ def load_dialog(self, current_dir=None, ext=None):
10931093
10941094 Args:
10951095 current_dir (str): path to a directory.
1096- ext (str): custom file type extension (default: json)
1096+ ext (str): custom file type extension (default: ``" json"`` )
10971097
10981098 Returns:
10991099 str: selected file path.
@@ -1110,7 +1110,7 @@ def save_dialog(self, current_dir=None, ext=None):
11101110
11111111 Args:
11121112 current_dir (str): path to a directory.
1113- ext (str): custom file type extension (default: json)
1113+ ext (str): custom file type extension (default: ``" json"`` )
11141114
11151115 Returns:
11161116 str: selected file path.
0 commit comments