Skip to content

Commit fa4742c

Browse files
committed
clean up
1 parent 4ca9abd commit fa4742c

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

NodeGraphQt/base/graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,6 @@ def _deserialize(self, data, relative_pos=False, pos=None, set_parent=True):
11391139
node.model.set_property(prop, val)
11401140
nodes[n_id] = node
11411141
self.add_node(node, n_data.get('pos'), unique_name=set_parent)
1142-
# node.set_graph(self)
11431142

11441143
if isinstance(node, SubGraph):
11451144
if n_data.get('custom', None):

NodeGraphQt/widgets/node_publish_widget.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# from .. import QtWidgets
2-
from PySide2 import QtWidgets
1+
from .properties import PropFileSavePath
2+
from .. import QtWidgets
33
import os
4-
from NodeGraphQt.widgets.properties import PropFileSavePath
54

65

76
class _element_widget(QtWidgets.QWidget):
@@ -72,18 +71,3 @@ def publish(self):
7271
self.published = True
7372
self.close()
7473

75-
76-
if __name__ == '__main__':
77-
import sys
78-
79-
class node(object):
80-
def __init__(self):
81-
pass
82-
83-
def name(self):
84-
return 'node name'
85-
86-
app = QtWidgets.QApplication()
87-
wid = NodePublishWidget(None, node())
88-
wid.show()
89-
sys.exit(app.exec_())

NodeGraphQt/widgets/tab_search.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def _show(self):
194194

195195
def _on_search_submitted(self):
196196
action = self.sender()
197-
print(action)
198197
if type(action) is not QtWidgets.QAction:
199198
if len(self._searched_actions) > 0:
200199
action = self._searched_actions[0]

0 commit comments

Comments
 (0)