From 37da7525a41af52ebcee58cbd9c00fe70910a174 Mon Sep 17 00:00:00 2001 From: rahulp13 Date: Fri, 20 Dec 2019 17:27:43 +0530 Subject: changed message levels --- src/createKicadLibrary.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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",'''The Libraries of this model already exist.Do you want to overwrite it?
- If yes, press ok else cancel it and change the name of your vhdl file''', QtGui.QMessageBox.Ok, QtGui.QMessageBox.Cancel) + ret = QtGui.QMessageBox.warning(self, "Warning",'''Library files for this model already exist. Do you want to overwrite it?
+ 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",'''A standard library already exists in this name.
+ ret = QtGui.QMessageBox.critical(self, "Error",'''A standard library already exists with this name.
Please change the name of your vhdl file and upload it again''', QtGui.QMessageBox.Ok) # quit() -- cgit