@@ -28,7 +28,8 @@ def add_node_widget(self, widget):
2828
2929class NodeBaseWidget (QtWidgets .QGraphicsProxyWidget ):
3030 """
31- Base Node Widget.
31+ NodeBaseWidget is the main base class for all node widgets that is
32+ embedded in a :class:`NodeGraphQt.BaseNode` object.
3233 """
3334
3435 value_changed = QtCore .Signal (str , object )
@@ -136,8 +137,12 @@ def name(self):
136137
137138class NodeComboBox (NodeBaseWidget ):
138139 """
139- ComboBox Node Widget inherits from:
140- :class:`NodeGraphQt.widgets.node_widgets.NodeBaseWidget`
140+ NodeComboBox widget is subclassed from :class:`NodeBaseWidget`,
141+ this widget is displayed as a ``QComboBox`` embedded in a node.
142+
143+ .. note::
144+ `To embed a ``QComboBox`` in a node see func:`
145+ :meth:`NodeGraphQt.BaseNode.add_combo_menu`
141146 """
142147
143148 def __init__ (self , parent = None , name = '' , label = '' , items = None ):
@@ -167,10 +172,10 @@ def widget(self):
167172 @property
168173 def value (self ):
169174 """
170- Returns the QComboBox current text.
175+ Returns the widget current text.
171176
172177 Returns:
173- str: current property value .
178+ str: current text .
174179 """
175180 return str (self ._combo .currentText ())
176181
@@ -201,8 +206,12 @@ def clear(self):
201206
202207class NodeLineEdit (NodeBaseWidget ):
203208 """
204- LineEdit Node Widget inherits from:
205- :class:`NodeGraphQt.widgets.node_widgets.NodeBaseWidget`
209+ NodeLineEdit widget is subclassed from :class:`NodeBaseWidget`,
210+ this widget is displayed as a ``QLineEdit`` embedded in a node.
211+
212+ .. note::
213+ `To embed a ``QLineEdit`` in a node see func:`
214+ :meth:`NodeGraphQt.BaseNode.add_text_input`
206215 """
207216
208217 def __init__ (self , parent = None , name = '' , label = '' , text = '' ):
@@ -229,10 +238,10 @@ def widget(self):
229238 @property
230239 def value (self ):
231240 """
232- Returns the QLineEdit current text.
241+ Returns the widgets current text.
233242
234243 Returns:
235- str: current property value .
244+ str: current text .
236245 """
237246 return str (self ._ledit .text ())
238247
@@ -245,8 +254,12 @@ def value(self, text=''):
245254
246255class NodeCheckBox (NodeBaseWidget ):
247256 """
248- CheckBox Node Widget inherits from:
249- :class:`NodeGraphQt.widgets.node_widgets.NodeBaseWidget`
257+ NodeCheckBox widget is subclassed from :class:`NodeBaseWidget`,
258+ this widget is displayed as a ``QCheckBox`` embedded in a node.
259+
260+ .. note::
261+ `To embed a ``QCheckBox`` in a node see func:`
262+ :meth:`NodeGraphQt.BaseNode.add_checkbox`
250263 """
251264
252265 def __init__ (self , parent = None , name = '' , label = '' , text = '' , state = False ):
@@ -279,10 +292,10 @@ def widget(self):
279292 @property
280293 def value (self ):
281294 """
282- Returns the QCheckBox checked state.
295+ Returns the widget checked state.
283296
284297 Returns:
285- bool: current property value .
298+ bool: checked state .
286299 """
287300 return self ._cbox .isChecked ()
288301
0 commit comments