Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jchanvfx committed May 14, 2019
1 parent 132ec68 commit b456253
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 9 additions & 2 deletions NodeGraphQt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

__version__ = '0.0.2'
__version__ = '0.0.3'
__status__ = 'Work in Progress'
__license__ = 'MIT'

Expand All @@ -40,6 +40,11 @@
__module_name__ = 'NodeGraphQt'
__url__ = 'https://github.com/jchanvfx/NodeGraphQt'

__all__ = [
'NodeGraph', 'NodeObject', 'BaseNode', 'BackdropNode', 'Port',
'Menu', 'MenuCommand', 'setup_context_menu'
]


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

from .base.actions import setup_context_menu
from .base.graph import NodeGraph
from .base.node import NodeObject, BaseNode, BackdropNode
from .base.port import Port
from .base.menu import Menu, MenuCommand

# functions
from .base.actions import setup_context_menu
3 changes: 3 additions & 0 deletions NodeGraphQt/widgets/properties_bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def __init__(self, parent=None):


class PropertiesBinWidget(QtWidgets.QWidget):
"""
Node properties bin for displaying properties.
"""

#: Signal emitted (node_id, prop_name, prop_value)
property_changed = QtCore.Signal(str, str, object)
Expand Down
5 changes: 4 additions & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import os
import sys

from NodeGraphQt import NodeGraph, BaseNode, BackdropNode, setup_context_menu
from NodeGraphQt import (NodeGraph,
BaseNode,
BackdropNode,
setup_context_menu)
from NodeGraphQt import QtWidgets, QtCore

# import example nodes from the "example_nodes" package
Expand Down

0 comments on commit b456253

Please sign in to comment.