Skip to content

Commit ef3df07

Browse files
committed
doc updates
1 parent 06fd395 commit ef3df07

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/examples/ex_node.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Creating Nodes
1111
:linenos:
1212
:emphasize-lines: 22
1313
14-
from NodeGraphQt import BaseNode, NodeGraph, QtWidgets
14+
from Qt import QtWidgets
15+
from NodeGraphQt import BaseNode, NodeGraph
1516
1617
class MyNode(BaseNode):
1718
@@ -89,7 +90,8 @@ Here's an example to embed a custom widget where we subclass the
8990
:linenos:
9091
:emphasize-lines: 38, 96, 97
9192
92-
from Qt import QtCore, QtWidgets, BaseNode, NodeBaseWidget
93+
from Qt import QtCore, QtWidgets
94+
from NodeGraphQt import BaseNode, NodeBaseWidget
9395
9496
class MyCustomWidget(QtWidgets.QWidget):
9597
"""

docs/examples/ex_overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Here's a basic example snippet for creating two nodes and connecting them togeth
6464
6565
import sys
6666
67-
from NodeGraphQt import QtWidgets
67+
from Qt import QtWidgets
6868
from NodeGraphQt import NodeGraph, BaseNode, setup_context_menu
6969
7070

0 commit comments

Comments
 (0)