diff options
author | nilshah98 | 2019-06-11 15:14:02 +0530 |
---|---|---|
committer | nilshah98 | 2019-06-11 15:14:02 +0530 |
commit | 9e92a335fc364d391e9b524c226602a1677c2518 (patch) | |
tree | 85cc00b16004b7c64dc76ebdf4cc84d6b1a84499 /src/frontEnd/ProjectExplorer.py | |
parent | 60f301882da9aa06faba7c3c2b1b9fe2b9f39f17 (diff) | |
download | eSim-9e92a335fc364d391e9b524c226602a1677c2518.tar.gz eSim-9e92a335fc364d391e9b524c226602a1677c2518.tar.bz2 eSim-9e92a335fc364d391e9b524c226602a1677c2518.zip |
Removed noqa
Diffstat (limited to 'src/frontEnd/ProjectExplorer.py')
-rw-r--r-- | src/frontEnd/ProjectExplorer.py | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py index d53ca8e6..77b3f124 100644 --- a/src/frontEnd/ProjectExplorer.py +++ b/src/frontEnd/ProjectExplorer.py @@ -40,7 +40,7 @@ class ProjectExplorer(QtGui.QWidget): parentnode = QtGui.QTreeWidgetItem( self.treewidget, [pathlist[-1], parents]) for files in children: - childnode = QtGui.QTreeWidgetItem( # noqa + QtGui.QTreeWidgetItem( parentnode, [files, os.path.join(parents, files)]) self.window.addWidget(self.treewidget) @@ -56,14 +56,18 @@ class ProjectExplorer(QtGui.QWidget): parentnode = QtGui.QTreeWidgetItem( self.treewidget, [pathlist[-1], parents]) for files in children: - childnode = QtGui.QTreeWidgetItem( # noqa - parentnode, [files, os.path.join(parents, files)]) - self.obj_appconfig.proc_dict - [self.obj_appconfig.current_project['ProjectName']] = [ - ] - self.obj_appconfig.dock_dict - [self.obj_appconfig.current_project['ProjectName']] = [ - ] + QtGui.QTreeWidgetItem( + parentnode, [files, os.path.join(parents, files)] + ) + + ( + self.obj_appconfig. + proc_dict[self.obj_appconfig.current_project['ProjectName']] + ) = [] + ( + self.obj_appconfig. + dock_dict[self.obj_appconfig.current_project['ProjectName']] + ) = [] def openMenu(self, position): @@ -148,7 +152,6 @@ class ProjectExplorer(QtGui.QWidget): def removeProject(self): self.indexItem = self.treewidget.currentIndex() - filename = str(self.indexItem.data()) # noqa self.filePath = str( self.indexItem.sibling( self.indexItem.row(), @@ -165,7 +168,6 @@ class ProjectExplorer(QtGui.QWidget): def refreshProject(self): self.indexItem = self.treewidget.currentIndex() - filename = str(self.indexItem.data()) # noqa self.filePath = str( self.indexItem.sibling( self.indexItem.row(), @@ -177,7 +179,7 @@ class ProjectExplorer(QtGui.QWidget): for items in self.treewidget.selectedItems(): items.removeChild(items.child(0)) for files in filelistnew: - childnode = QtGui.QTreeWidgetItem( # noqa + QtGui.QTreeWidgetItem( parentnode, [ files, os.path.join( self.filePath, files)]) |