Skip to content

Commit 7cc0046

Browse files
authored
doc string formatting tweaks.
1 parent 3e85beb commit 7cc0046

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

NodeGraphQt/base/graph.py

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def _on_connection_sliced(self, ports):
217217
@property
218218
def model(self):
219219
"""
220-
Returns the model used for storing the node graph data.
220+
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 wrapper widget containing the node graph.
230+
The node graph widget for adding into a layout.
231231
232232
Returns:
233233
QtWidgets.QWidget: node graph widget.
@@ -242,14 +242,14 @@ def widget(self):
242242
def show(self):
243243
"""
244244
Show node graph widget this is just a convenience
245-
function to :meth:`NodeGraph.widget.show()`.
245+
function to :meth:`NodeGraphQt.NodeGraph.widget.show()`.
246246
"""
247247
self._widget.show()
248248

249249
def close(self):
250250
"""
251251
Close node graph NodeViewer widget this is just a convenience
252-
function to :meth:`NodeGraph.widget.close()`.
252+
function to :meth:`NodeGraphQt.NodeGraph.widget.close()`.
253253
"""
254254
self._widget.close()
255255

@@ -258,15 +258,15 @@ def viewer(self):
258258
Returns the view interface used by the node graph.
259259
260260
Warnings:
261-
Methods in the `NodeViewer` widget should only be used internally
261+
Methods in the `NodeViewer` are used internally
262262
by `NodeGraphQt` components.
263263
264264
See Also:
265-
To add the node graph into a QLayout see
266-
:attr:`NodeGraph.widget` attribute.
265+
:attr:`NodeGraph.widget` for adding the node graph into a
266+
QtWidgets.QLayout.
267267
268268
Returns:
269-
NodeGraphQt.widgets.viewer.NodeViewer: viewer widget.
269+
NodeGraphQt.widgets.viewer.NodeViewer: viewer interface.
270270
"""
271271
return self._viewer
272272

@@ -353,7 +353,10 @@ def undo_stack(self):
353353
def clear_undo_stack(self):
354354
"""
355355
Clears the undo stack.
356-
(convenience function to :meth:`NodeGraph.undo_stack().clear`)
356+
357+
Note:
358+
Convenience function to
359+
:meth:`NodeGraphQt.NodeGraph.undo_stack().clear`
357360
358361
See Also:
359362
:meth:`NodeGraph.begin_undo()`,
@@ -993,8 +996,8 @@ def question_dialog(self, text, title='Node Graph'):
993996
the node graph.
994997
995998
Note:
996-
This is a convenience function to
997-
:meth:`NodeGraph.viewer().question_dialog`)
999+
Convenience function to
1000+
:meth:`NodeGraphQt.NodeGraph.viewer().question_dialog`
9981001
9991002
Args:
10001003
text (str): question text.
@@ -1010,8 +1013,8 @@ def message_dialog(self, text, title='Node Graph'):
10101013
Prompts a file open dialog in the node graph.
10111014
10121015
Note:
1013-
This is a convenience function to
1014-
:meth:`NodeGraph.viewer().message_dialog`
1016+
Convenience function to
1017+
:meth:`NodeGraphQt.NodeGraph.viewer().message_dialog`
10151018
10161019
Args:
10171020
text (str): message text.
@@ -1024,8 +1027,8 @@ def load_dialog(self, current_dir=None, ext=None):
10241027
Prompts a file open dialog in the node graph.
10251028
10261029
Note:
1027-
This is a convenience function to
1028-
:meth:`NodeGraph.viewer().load_dialog`
1030+
Convenience function to
1031+
:meth:`NodeGraphQt.NodeGraph.viewer().load_dialog`
10291032
10301033
Args:
10311034
current_dir (str): path to a directory.
@@ -1041,8 +1044,8 @@ def save_dialog(self, current_dir=None, ext=None):
10411044
Prompts a file save dialog in the node graph.
10421045
10431046
Note:
1044-
This is a convenience function to
1045-
:meth:`NodeGraph.viewer().save_dialog`
1047+
Convenience function to
1048+
:meth:`NodeGraphQt.NodeGraph.viewer().save_dialog`
10461049
10471050
Args:
10481051
current_dir (str): path to a directory.

0 commit comments

Comments
 (0)