summaryrefslogtreecommitdiff
path: root/src/modelEditor/ModelEditor.py
diff options
context:
space:
mode:
authorkomalsheth2362015-06-18 16:11:06 +0530
committerkomalsheth2362015-06-18 16:11:06 +0530
commit9f13750ffc4946177d7e22bed8b19e62ee76e502 (patch)
treef58df8c30dcc478dff4672884ec10a4b61056da2 /src/modelEditor/ModelEditor.py
parent7dd5d060156177b0ee05c81c96c709767aca1989 (diff)
downloadeSim-9f13750ffc4946177d7e22bed8b19e62ee76e502.tar.gz
eSim-9f13750ffc4946177d7e22bed8b19e62ee76e502.tar.bz2
eSim-9f13750ffc4946177d7e22bed8b19e62ee76e502.zip
Bug fixing for model editor and ngspicewidget for windows
Diffstat (limited to 'src/modelEditor/ModelEditor.py')
-rw-r--r--src/modelEditor/ModelEditor.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modelEditor/ModelEditor.py b/src/modelEditor/ModelEditor.py
index 99b69141..2cc9761c 100644
--- a/src/modelEditor/ModelEditor.py
+++ b/src/modelEditor/ModelEditor.py
@@ -84,6 +84,7 @@ class ModelEditorclass(QtGui.QWidget):
def opennew(self):
self.addbtn.setHidden(True)
try:
+ self.removebtn.setHidden(True)
self.modeltable.setHidden(True)
except:
pass
@@ -230,8 +231,12 @@ class ModelEditorclass(QtGui.QWidget):
self.igbt.setDisabled(True)
self.bjt.setDisabled(True)
self.magnetic.setDisabled(True)
- self.editfile=str(QtGui.QFileDialog.getOpenFileName(self,"Open Library Directory","../deviceModelLibrary","*.lib"))
- self.createtable(self.editfile)
+ try:
+ self.editfile=str(QtGui.QFileDialog.getOpenFileName(self,"Open Library Directory","../deviceModelLibrary","*.lib"))
+ self.createtable(self.editfile)
+ except:
+ print"no file selected"
+ pass
'''Creates the model table by parsing th .xml file '''
def createtable(self, modelfile):