summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/KicadtoNgspice.py
diff options
context:
space:
mode:
authorrahulp132020-02-15 14:41:09 +0530
committerrahulp132020-02-15 14:41:09 +0530
commit94326c365e361137412272a46caafe7f97620196 (patch)
tree5ccf3695b50a3168a26230e07fafeb9911160213 /src/kicadtoNgspice/KicadtoNgspice.py
parentb173d88ac0059b67e60a042293b1e486c9620d8a (diff)
downloadeSim-94326c365e361137412272a46caafe7f97620196.tar.gz
eSim-94326c365e361137412272a46caafe7f97620196.tar.bz2
eSim-94326c365e361137412272a46caafe7f97620196.zip
set modality to QErrorMessage
Diffstat (limited to 'src/kicadtoNgspice/KicadtoNgspice.py')
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py
index ab2e55e8..cfc4f671 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.py
+++ b/src/kicadtoNgspice/KicadtoNgspice.py
@@ -121,18 +121,22 @@ class MainWindow(QtGui.QWidget):
if unknownModelList:
print("Unknown Model List is : ", unknownModelList)
self.msg = QtGui.QErrorMessage()
+ self.msg.setModal(True)
+ self.msg.setWindowTitle("Unknown Models")
self.content = "Your schematic contain unknown model " + \
', '.join(unknownModelList)
self.msg.showMessage(self.content)
- self.msg.setWindowTitle("Unknown Models")
+ self.msg.exec_()
elif multipleModelList:
self.msg = QtGui.QErrorMessage()
+ self.msg.setModal(True)
+ self.msg.setWindowTitle("Multiple Models")
self.mcontent = "Look like you have duplicate model in \
modelParamXML directory " + \
', '.join(multipleModelList[0])
self.msg.showMessage(self.mcontent)
- self.msg.setWindowTitle("Multiple Models")
+ self.msg.exec_()
else:
self.createMainWindow()