Skip to content

Commit b456253

Browse files
committed
clean up
1 parent 132ec68 commit b456253

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

NodeGraphQt/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
3131
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232

33-
__version__ = '0.0.2'
33+
__version__ = '0.0.3'
3434
__status__ = 'Work in Progress'
3535
__license__ = 'MIT'
3636

@@ -40,6 +40,11 @@
4040
__module_name__ = 'NodeGraphQt'
4141
__url__ = 'https://github.com/jchanvfx/NodeGraphQt'
4242

43+
__all__ = [
44+
'NodeGraph', 'NodeObject', 'BaseNode', 'BackdropNode', 'Port',
45+
'Menu', 'MenuCommand', 'setup_context_menu'
46+
]
47+
4348

4449
try:
4550
from Qt import QtWidgets, QtGui, QtCore, QtCompat
@@ -49,8 +54,10 @@
4954
print('Cannot import "Qt.py" module falling back on '
5055
'"NodeGraphQt.vendor.Qt ({})"'.format(qtpy_ver))
5156

52-
from .base.actions import setup_context_menu
5357
from .base.graph import NodeGraph
5458
from .base.node import NodeObject, BaseNode, BackdropNode
5559
from .base.port import Port
5660
from .base.menu import Menu, MenuCommand
61+
62+
# functions
63+
from .base.actions import setup_context_menu

NodeGraphQt/widgets/properties_bin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def __init__(self, parent=None):
5050

5151

5252
class PropertiesBinWidget(QtWidgets.QWidget):
53+
"""
54+
Node properties bin for displaying properties.
55+
"""
5356

5457
#: Signal emitted (node_id, prop_name, prop_value)
5558
property_changed = QtCore.Signal(str, str, object)

example.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
import os
44
import sys
55

6-
from NodeGraphQt import NodeGraph, BaseNode, BackdropNode, setup_context_menu
6+
from NodeGraphQt import (NodeGraph,
7+
BaseNode,
8+
BackdropNode,
9+
setup_context_menu)
710
from NodeGraphQt import QtWidgets, QtCore
811

912
# import example nodes from the "example_nodes" package

0 commit comments

Comments
 (0)