summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation/pythonPlotting.py
diff options
context:
space:
mode:
authorrahulp132020-02-15 14:41:09 +0530
committerrahulp132020-02-15 14:41:09 +0530
commit94326c365e361137412272a46caafe7f97620196 (patch)
tree5ccf3695b50a3168a26230e07fafeb9911160213 /src/ngspiceSimulation/pythonPlotting.py
parentb173d88ac0059b67e60a042293b1e486c9620d8a (diff)
downloadeSim-94326c365e361137412272a46caafe7f97620196.tar.gz
eSim-94326c365e361137412272a46caafe7f97620196.tar.bz2
eSim-94326c365e361137412272a46caafe7f97620196.zip
set modality to QErrorMessage
Diffstat (limited to 'src/ngspiceSimulation/pythonPlotting.py')
-rw-r--r--src/ngspiceSimulation/pythonPlotting.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/ngspiceSimulation/pythonPlotting.py b/src/ngspiceSimulation/pythonPlotting.py
index 4a32f658..032b1eeb 100644
--- a/src/ngspiceSimulation/pythonPlotting.py
+++ b/src/ngspiceSimulation/pythonPlotting.py
@@ -667,9 +667,11 @@ class DataExtraction:
except Exception as e:
print("Exception Message : ", str(e))
self.obj_appconfig.print_error('Exception Message :' + str(e))
- self.msg = QtGui.QErrorMessage(None)
+ self.msg = QtGui.QErrorMessage()
+ self.msg.setModal(True)
+ self.msg.setWindowTitle("Error Message")
self.msg.showMessage('Unable to open plot data files.')
- self.msg.setWindowTitle("Error Message:openFile")
+ self.msg.exec_()
try:
for l in alli[3].split(" "):
@@ -680,9 +682,11 @@ class DataExtraction:
except Exception as e:
print("Exception Message : ", str(e))
self.obj_appconfig.print_error('Exception Message :' + str(e))
- self.msg = QtGui.QErrorMessage(None)
- self.msg.showMessage('Error in Analysis File.')
- self.msg.setWindowTitle("Error Message:openFile")
+ self.msg = QtGui.QErrorMessage()
+ self.msg.setModal(True)
+ self.msg.setWindowTitle("Error Message")
+ self.msg.showMessage('Unable to read Analysis File.')
+ self.msg.exec_()
d = self.numberFinder(fpath)
d1 = int(d[0] + 1)