From 9f13750ffc4946177d7e22bed8b19e62ee76e502 Mon Sep 17 00:00:00 2001 From: komalsheth236 Date: Thu, 18 Jun 2015 16:11:06 +0530 Subject: Bug fixing for model editor and ngspicewidget for windows --- src/modelEditor/ModelEditor.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/modelEditor/ModelEditor.py') 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): -- cgit