summaryrefslogtreecommitdiff
path: root/src/ngspicetoModelica
diff options
context:
space:
mode:
authorrahulp132020-02-15 14:41:09 +0530
committerrahulp132020-02-15 14:41:09 +0530
commit94326c365e361137412272a46caafe7f97620196 (patch)
tree5ccf3695b50a3168a26230e07fafeb9911160213 /src/ngspicetoModelica
parentb173d88ac0059b67e60a042293b1e486c9620d8a (diff)
downloadeSim-94326c365e361137412272a46caafe7f97620196.tar.gz
eSim-94326c365e361137412272a46caafe7f97620196.tar.bz2
eSim-94326c365e361137412272a46caafe7f97620196.zip
set modality to QErrorMessage
Diffstat (limited to 'src/ngspicetoModelica')
-rw-r--r--src/ngspicetoModelica/ModelicaUI.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ngspicetoModelica/ModelicaUI.py b/src/ngspicetoModelica/ModelicaUI.py
index d5daf9ad..168b5c14 100644
--- a/src/ngspicetoModelica/ModelicaUI.py
+++ b/src/ngspicetoModelica/ModelicaUI.py
@@ -79,16 +79,20 @@ class OpenModelicaEditor(QtGui.QWidget):
self.msg.exec_()
else:
self.err_msg = QtGui.QErrorMessage()
+ self.msg.setModal(True)
+ self.msg.setWindowTitle(
+ "Ngspice to Modelica conversion error")
self.err_msg.showMessage(
'Unable to convert NgSpice netlist to Modelica netlist.' +
'Check the netlist :' +
error_code)
- self.err_msg.setWindowTitle(
- "Ngspice to Modelica conversion error")
+ self.err_msg.exec_()
self.obj_appconfig.print_error(error_code)
except Exception as e:
self.msg = QtGui.QErrorMessage()
+ self.msg.setModal(True)
+ self.msg.setWindowTitle("Ngspice to Modelica conversion error")
self.msg.showMessage(
'Unable to convert NgSpice netlist to Modelica netlist.' +
'Check the netlist :' +