summaryrefslogtreecommitdiff
path: root/src/modelEditor
diff options
context:
space:
mode:
authormaddy-22019-05-27 16:27:59 +0530
committernilshah982019-06-07 11:03:16 +0530
commit32132ebfcc90e993acc3a87c4017ef0b00bcd890 (patch)
treebe257d10a2afdc8dfd89e89a5ac26d7570ef54b7 /src/modelEditor
parent11796de3a3bbb0568d44c18ba6ff3d5e14b7407f (diff)
downloadeSim-32132ebfcc90e993acc3a87c4017ef0b00bcd890.tar.gz
eSim-32132ebfcc90e993acc3a87c4017ef0b00bcd890.tar.bz2
eSim-32132ebfcc90e993acc3a87c4017ef0b00bcd890.zip
modelEditor made pep8 compliant
Diffstat (limited to 'src/modelEditor')
-rw-r--r--src/modelEditor/ModelEditor.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modelEditor/ModelEditor.py b/src/modelEditor/ModelEditor.py
index 88501a4f..e1dfec6b 100644
--- a/src/modelEditor/ModelEditor.py
+++ b/src/modelEditor/ModelEditor.py
@@ -165,7 +165,8 @@ class ModelEditorclass(QtGui.QWidget):
def openfiletype(self, filetype):
'''
- Select the path of the file to be opened depending upon selected file type
+ Select the path of the file to be opened \
+ depending upon selected file type
'''
self.path = '../deviceModelLibrary/Templates'
if self.diode.isChecked():
@@ -522,7 +523,7 @@ class ModelEditorclass(QtGui.QWidget):
def removeparameter(self):
self.savebtn.setDisabled(False)
index = self.modeltable.currentIndex()
- param = str(index.data())
+ 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)]
@@ -633,7 +634,7 @@ class ModelEditorclass(QtGui.QWidget):
defaultcwd = os.getcwd()
savepath = os.path.join(self.savepathtest, 'User Libraries')
- savefilepath = os.path.join(savepath, model_name + ".xml")
+ savefilepath = os.path.join(savepath, model_name + ".xml") # noqa
os.chdir(savepath)
text, ok1 = QtGui.QInputDialog.getText(
self, 'Model Name', 'Enter Model Library Name')