Skip to content

Commit 75fe723

Browse files
committed
doc formatting updates
1 parent 62362e3 commit 75fe723

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

NodeGraphQt/base/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def registered_nodes(self):
823823
"""
824824
Return a list of all node types that have been registered.
825825
826-
See Also:
826+
Hint:
827827
To register a node :meth:`NodeGraph.register_node`
828828
829829
Returns:

NodeGraphQt/base/node.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ def add_combo_menu(self, name, label='', items=None, tab=None):
628628
function and embeds a :class:`PySide2.QtWidgets.QComboBox` widget
629629
into the node.
630630
631-
Note:
631+
Important:
632632
The embedded widget is wired up to the :meth:`NodeObject.set_property`
633633
function use this function to to update the widget.
634634
@@ -652,7 +652,7 @@ def add_text_input(self, name, label='', text='', tab=None, multi_line=False):
652652
function and embeds a :class:`PySide2.QtWidgets.QLineEdit` widget
653653
into the node.
654654
655-
Note:
655+
Important:
656656
The embedded widget is wired up to the :meth:`NodeObject.set_property`
657657
function use this function to to update the widget.
658658
@@ -677,7 +677,7 @@ def add_file_input(self, name, label='', text='', tab=None, ext="*"):
677677
function and embeds a :class:`PySide2.QtWidgets.QLineEdit` widget
678678
into the node.
679679
680-
Note:
680+
Important:
681681
The embedded widget is wired up to the :meth:`NodeObject.set_property`
682682
function use this function to to update the widget.
683683
@@ -700,7 +700,7 @@ def add_float_input(self, name, label='', value=0.0, range=None, tab=None):
700700
function and embeds a :class:`PySide2.QtWidgets.QLineEdit` widget
701701
into the node.
702702
703-
Note:
703+
Important:
704704
The embedded widget is wired up to the :meth:`NodeObject.set_property`
705705
function use this function to to update the widget.
706706
@@ -723,7 +723,7 @@ def add_int_input(self, name, label='', value=0, range=None, tab=None):
723723
function and embeds a :class:`PySide2.QtWidgets.QLineEdit` widget
724724
into the node.
725725
726-
Note:
726+
Important:
727727
The embedded widget is wired up to the :meth:`NodeObject.set_property`
728728
function use this function to to update the widget.
729729
@@ -746,7 +746,7 @@ def add_checkbox(self, name, label='', text='', state=False, tab=None):
746746
function and embeds a :class:`PySide2.QtWidgets.QCheckBox` widget
747747
into the node.
748748
749-
Note:
749+
Important:
750750
The embedded widget is wired up to the :meth:`NodeObject.set_property`
751751
function use this function to to update the widget.
752752

NodeGraphQt/widgets/viewer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def __init__(self, parent=None):
112112
self.COLLIDING_state = False
113113

114114
def __repr__(self):
115-
return '{}.{}()'.format(
116-
self.__module__, self.__class__.__name__)
115+
return '<{}() object at {}>'.format(
116+
self.__class__.__name__, hex(id(self)))
117117

118118
# --- private ---
119119

docs/nodes/NodeObject.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ NodeObject
1010

1111
Initial base node name.
1212

13-
.. note:: re-implement this attribute to provide a base node name.
13+
.. important:: re-implement this attribute to provide a base node name.
1414

1515
:return: node name
1616
:rtype: str
1717

1818
.. autoattribute:: __identifier__
1919
:annotation:
2020

21-
Unique node identifier domain. eg. ``"com.chantacticvfx"``
21+
Unique node identifier domain. eg. ``"nodeGraphQt.nodes"``
2222

23-
.. note:: re-implement this attribute to provide a unique node type.
23+
.. important:: re-implement this attribute to provide a unique node type.
2424

25-
:return: node identifer domain
25+
:return: node identifier domain
2626
:rtype: str
2727

2828
.. autoattribute:: graph
@@ -31,7 +31,7 @@ NodeObject
3131
.. autoattribute:: type_
3232
:annotation:
3333

34-
Node type identifier followed by the class name. `eg.` ``"com.chantacticvfx.NodeObject"``
34+
Node type identifier followed by the class name (<identifier>.<class_name>). `eg.` ``"nodeGraphQt.nodes.NodeObject"``
3535

3636
:return: node type (``__identifier__.__className__``)
3737
:rtype: str

0 commit comments

Comments
 (0)