summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrahulp132019-12-20 17:27:43 +0530
committerrahulp132019-12-20 17:27:43 +0530
commit37da7525a41af52ebcee58cbd9c00fe70910a174 (patch)
treec31d3c5dd2bc133c97d8b613b3e52d995c41a8c1
parentc62485e6d543d38155ab6a8e6a7d834f7b52ad59 (diff)
downloadnghdl-37da7525a41af52ebcee58cbd9c00fe70910a174.tar.gz
nghdl-37da7525a41af52ebcee58cbd9c00fe70910a174.tar.bz2
nghdl-37da7525a41af52ebcee58cbd9c00fe70910a174.zip
changed message levels
-rw-r--r--src/createKicadLibrary.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/createKicadLibrary.py b/src/createKicadLibrary.py
index 49c298e..a75413c 100644
--- a/src/createKicadLibrary.py
+++ b/src/createKicadLibrary.py
@@ -28,8 +28,8 @@ class AutoSchematic(QtGui.QWidget):
self.createLib()
elif (xmlFound == self.xml_loc + '/Nghdl'):
print 'Library already exists...'
- ret = QtGui.QMessageBox.critical(self, "Critical",'''<b>The Libraries of this model already exist.Do you want to overwrite it?</b><br/>
- <b>If yes, press ok else cancel it and change the name of your vhdl file</b>''', QtGui.QMessageBox.Ok, QtGui.QMessageBox.Cancel)
+ ret = QtGui.QMessageBox.warning(self, "Warning",'''<b>Library files for this model already exist. Do you want to overwrite it?</b><br/>
+ If yes press ok, else cancel it and change the name of your vhdl file.''', QtGui.QMessageBox.Ok, QtGui.QMessageBox.Cancel)
if ret == QtGui.QMessageBox.Ok:
print "Overwriting existing libraries"
self.getPortInformation()
@@ -41,7 +41,7 @@ class AutoSchematic(QtGui.QWidget):
quit()
else:
print 'Pre existing library...'
- ret = QtGui.QMessageBox.critical(self, "Error",'''<b>A standard library already exists in this name.</b><br/>
+ ret = QtGui.QMessageBox.critical(self, "Error",'''<b>A standard library already exists with this name.</b><br/>
<b>Please change the name of your vhdl file and upload it again</b>''', QtGui.QMessageBox.Ok)
# quit()