Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import signal

from Qt import QtCore, QtGui, QtWidgets

Expand Down Expand Up @@ -134,6 +135,9 @@ def __init__(self):


if __name__ == '__main__':
# handle SIGINT to make the app terminate on CTRL+C
signal.signal(signal.SIGINT, signal.SIG_DFL)

QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
app = QtWidgets.QApplication([])

Expand Down
7 changes: 6 additions & 1 deletion example_auto_nodes.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from NodeGraphQt import NodeGraph, setup_context_menu, \
QtWidgets, QtCore, PropertiesBinWidget, BackdropNode
PropertiesBinWidget, BackdropNode
from Qt import QtWidgets, QtCore
from example_auto_nodes import Publish, RootNode, update_nodes, setup_node_menu
import importlib
import inspect
import signal
import sys
import os

Expand Down Expand Up @@ -47,6 +49,9 @@ def get_published_nodes_from_folder(folder_path):


if __name__ == '__main__':
# handle SIGINT to make the app terminate on CTRL+C
signal.signal(signal.SIGINT, signal.SIG_DFL)

QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
app = QtWidgets.QApplication()

Expand Down
4 changes: 4 additions & 0 deletions example_math_nodes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import signal
from Qt import QtWidgets, QtCore

from NodeGraphQt import (NodeGraph,
Expand All @@ -11,6 +12,9 @@
from os.path import join

if __name__ == '__main__':
# handle SIGINT to make the app terminate on CTRL+C
signal.signal(signal.SIGINT, signal.SIG_DFL)

QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
app = QtWidgets.QApplication([])

Expand Down