Skip to content

Commit a5fdef5

Browse files
committed
updated docs
1 parent ea2de26 commit a5fdef5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NodeGraphQt/nodes/base_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def show_widget(self, name):
320320
321321
See Also:
322322
:meth:`BaseNode.add_custom_widget`,
323-
:meth:`BaseNode.show_widget`,
323+
:meth:`BaseNode.hide_widget`,
324324
:meth:`BaseNode.get_widget`
325325
"""
326326
# TODO: implement this logic to the undo stack.

docs/examples/ex_node.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ Here's an example to embed a custom widget where we subclass the
193193
node_widget = NodeWidgetWrapper(self.view)
194194
self.add_custom_widget(node_widget, tab='Custom')
195195
196+
To hide/show the embedded widget on a :class:`NodeGraphQt.BaseNode` checkout the
197+
:meth:`NodeGraphQt.BaseNode.hide_widget` and :meth:`NodeGraphQt.BaseNode.show_widget`
198+
functions.
199+
196200

197201
Connecting Nodes
198202
****************

0 commit comments

Comments
 (0)