Skip to content

Commit b0c329f

Browse files
committed
import updates
1 parent 36a6a64 commit b0c329f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

NodeGraphQt/qgraphics/pipe.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/python
22
import math
33

4-
from .. import QtCore, QtGui, QtWidgets
4+
from Qt import QtCore, QtGui, QtWidgets
5+
6+
from .port import PortItem
57
from ..constants import (
68
PIPE_DEFAULT_COLOR, PIPE_ACTIVE_COLOR,
79
PIPE_HIGHLIGHT_COLOR, PIPE_DISABLED_COLOR,
@@ -12,7 +14,6 @@
1214
ITEM_CACHE_MODE,
1315
NODE_LAYOUT_VERTICAL, NODE_LAYOUT_HORIZONTAL,
1416
NODE_LAYOUT_DIRECTION)
15-
from .port import PortItem
1617

1718
PIPE_STYLES = {
1819
PIPE_STYLE_DEFAULT: QtCore.Qt.SolidLine,
@@ -466,4 +467,4 @@ def paint(self, painter, option, widget):
466467
scale = dist / 20.0
467468
transform.scale(scale, scale)
468469
painter.drawPolygon(transform.map(self._arrow))
469-
painter.restore()
470+
painter.restore()

docs/examples/ex_node.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ Here's an example where we subclass the ``NodeGraph`` and connect it up to a
239239
.. code-block:: python
240240
:linenos:
241241
242-
from NodeGraphQt import BaseNode, NodeGraph, PropertiesBinWidget, QtCore, QtWidgets
242+
from Qt import QtCore, QtWidgets
243+
from NodeGraphQt import BaseNode, NodeGraph, PropertiesBinWidget
243244

244245

245246
class MyNode(BaseNode):
@@ -288,4 +289,4 @@ Here's an example where we subclass the ``NodeGraph`` and connect it up to a
288289
`more on the properties bin and node_double_clicked signal`
289290

290291
- :class:`NodeGraphQt.PropertiesBinWidget`
291-
- :attr:`NodeGraphQt.NodeGraph.node_double_clicked`
292+
- :attr:`NodeGraphQt.NodeGraph.node_double_clicked`

0 commit comments

Comments
 (0)