summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frontEnd/ProjectExplorer.py26
-rw-r--r--src/kicadtoNgspice/Processing.py1
-rw-r--r--src/modelEditor/ModelEditor.py2
-rw-r--r--src/subcircuit/newSub.py2
4 files changed, 15 insertions, 16 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)])
diff --git a/src/kicadtoNgspice/Processing.py b/src/kicadtoNgspice/Processing.py
index efc30c16..63847761 100644
--- a/src/kicadtoNgspice/Processing.py
+++ b/src/kicadtoNgspice/Processing.py
@@ -233,7 +233,6 @@ class PrcocessNetlist:
for ngspice model :", modelPath)
tree = ET.parse(modelPath[0])
- root = tree.getroot() # noqa
# Getting number of nodes for model and title
for child in tree.iter():
if child.tag == 'node_number':
diff --git a/src/modelEditor/ModelEditor.py b/src/modelEditor/ModelEditor.py
index e1dfec6b..573e506c 100644
--- a/src/modelEditor/ModelEditor.py
+++ b/src/modelEditor/ModelEditor.py
@@ -523,7 +523,6 @@ class ModelEditorclass(QtGui.QWidget):
def removeparameter(self):
self.savebtn.setDisabled(False)
index = self.modeltable.currentIndex()
- param = str(index.data()) # noqa
remove_item = self.modeltable.item(index.row(), 0).text()
self.modeltable.removeRow(index.row())
del self.modeldict[str(remove_item)]
@@ -634,7 +633,6 @@ class ModelEditorclass(QtGui.QWidget):
defaultcwd = os.getcwd()
savepath = os.path.join(self.savepathtest, 'User Libraries')
- savefilepath = os.path.join(savepath, model_name + ".xml") # noqa
os.chdir(savepath)
text, ok1 = QtGui.QInputDialog.getText(
self, 'Model Name', 'Enter Model Library Name')
diff --git a/src/subcircuit/newSub.py b/src/subcircuit/newSub.py
index 79080e55..c39f7c7a 100644
--- a/src/subcircuit/newSub.py
+++ b/src/subcircuit/newSub.py
@@ -1,4 +1,4 @@
-from PyQt4 import QtGui, QtCore # noqa
+from PyQt4 import QtGui
from projManagement.Validation import Validation
from configuration.Appconfig import Appconfig
from projManagement import Worker