Skip to content

Commit 9172435

Browse files
committed
clean up
1 parent 301db5f commit 9172435

File tree

4 files changed

+37
-10
lines changed

4 files changed

+37
-10
lines changed

NodeGraphQt/__init__.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
33

4-
# (c) 2017, Johnny Chan - www.chantasticvfx.com
5-
# All rights reserved.
4+
# (c) 2017, Johnny Chan
5+
# https://github.com/jchanvfx/NodeGraphQt
66

77
# Redistribution and use in source and binary forms, with or without
88
# modification, are permitted provided that the following conditions are met:
@@ -43,13 +43,11 @@
4343

4444
try:
4545
from Qt import QtWidgets, QtGui, QtCore, QtCompat
46-
from Qt import __version__ as qtpy_ver
4746
except ImportError as ie:
48-
print('Cannot import "Qt.py" shim falling back on "NodeGraphQt.vendor.Qt"')
4947
from .vendor.Qt import __version__ as qtpy_ver
5048
from .vendor.Qt import QtWidgets, QtGui, QtCore, QtCompat
51-
52-
print('Qt.py v{}'.format(qtpy_ver))
49+
print('Cannot import "Qt.py" module falling back on '
50+
'"NodeGraphQt.vendor.Qt ({})"'.format(qtpy_ver))
5351

5452
from .base.actions import setup_context_menu
5553
from .base.graph import NodeGraph

NodeGraphQt/base/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/python
22

3-
# (c) 2017, Johnny Chan - www.chantasticvfx.com
4-
# All rights reserved.
3+
# (c) 2017, Johnny Chan
4+
# https://github.com/jchanvfx/NodeGraphQt
55

66
# Redistribution and use in source and binary forms, with or without
77
# modification, are permitted provided that the following conditions are met:

NodeGraphQt/widgets/__init__.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python
2+
3+
# (c) 2017, Johnny Chan
4+
# https://github.com/jchanvfx/NodeGraphQt
5+
6+
# Redistribution and use in source and binary forms, with or without
7+
# modification, are permitted provided that the following conditions are met:
8+
9+
# * Redistributions of source code must retain the above copyright notice,
10+
# this list of conditions and the following disclaimer.
11+
12+
# * Redistributions in binary form must reproduce the above copyright notice,
13+
# this list of conditions and the following disclaimer in the documentation
14+
# and/or other materials provided with the distribution.
15+
16+
# * Neither the name of the Johnny Chan nor the names of its contributors
17+
# may be used to endorse or promote products derived from this software
18+
# without specific prior written permission.
19+
20+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
24+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
25+
# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
26+
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27+
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28+
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29+
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30+
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ applications that supports [PySide2](https://doc.qt.io/qtforpython/pysideapi2.ht
2929

3030
```python
3131
import sys
32-
from PySide2 import QtWidgets
32+
from NodeGraphQt import QtWidgets
3333
from NodeGraphQt import NodeGraph, Node, Backdrop, setup_context_menu
3434

3535
# create a example node object with a input/output port.

0 commit comments

Comments
 (0)