diff --git a/NodeGraphQt/base/factory.py b/NodeGraphQt/base/factory.py index 7de47484..6da3f9db 100644 --- a/NodeGraphQt/base/factory.py +++ b/NodeGraphQt/base/factory.py @@ -14,14 +14,32 @@ class NodeFactory(object): @property def names(self): + """ + Return all currently registered node type identifiers. + + Returns: + dict: key= @@ -30,7 +30,8 @@ http://chantasticvfx.com/nodeGraphQt/html/index.html ```python import sys -from PySide2 import QtWidgets + +from NodeGraphQt import QtWidgets from NodeGraphQt import NodeGraph, Node, Backdrop, setup_context_menu # create a example node object with a input/output port. diff --git a/docs/overview.rst b/docs/overview.rst index 7f88d22c..f7ee3b54 100644 --- a/docs/overview.rst +++ b/docs/overview.rst @@ -61,8 +61,8 @@ example code: :linenos: import sys - from PySide2 import QtWidgets + from NodeGraphQt import QtWidgets from NodeGraphQt import NodeGraph, BaseNode, setup_context_menu