From af4fe5b34e291cfe3bb1dadb967a8a049bf9ee64 Mon Sep 17 00:00:00 2001 From: rahulp13 Date: Wed, 16 Dec 2020 00:44:00 +0530 Subject: flake8 compliant --- src/createKicadLibrary.py | 10 +++++----- src/model_generation.py | 5 +++-- src/ngspice_ghdl.py | 3 ++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/createKicadLibrary.py b/src/createKicadLibrary.py index e98d0d0..eed8f6d 100644 --- a/src/createKicadLibrary.py +++ b/src/createKicadLibrary.py @@ -36,8 +36,8 @@ class AutoSchematic(QtWidgets.QWidget): elif (xmlFound == os.path.join(self.xml_loc, 'Nghdl')): print('Library already exists...') ret = QtWidgets.QMessageBox.warning( - self.parent, "Warning", '''Library files for this model ''' + - '''already exist. Do you want to overwrite it?
+ self.parent, "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.''', QtWidgets.QMessageBox.Ok, QtWidgets.QMessageBox.Cancel @@ -54,9 +54,9 @@ class AutoSchematic(QtWidgets.QWidget): else: print('Pre existing library...') ret = QtWidgets.QMessageBox.critical( - self.parent, "Error", '''A standard library already exists ''' + - '''with this name.
Please change the name ''' + - '''of your vhdl file and upload it again''', + self.parent, "Error", '''A standard library already ''' + + '''exists with this name.
Please change the ''' + + '''name of your vhdl file and upload it again''', QtWidgets.QMessageBox.Ok ) diff --git a/src/model_generation.py b/src/model_generation.py index 5b7ed5f..bd96bc2 100644 --- a/src/model_generation.py +++ b/src/model_generation.py @@ -563,8 +563,9 @@ class ModelGeneration: cmd_str1 = cmd_str1.replace("\\", "/") cfunc.write( - '\t\tsnprintf(command,1024, "start mintty.exe -t \\"VHDL-Testbench Logs\\" ' + - '-h always bash.exe -c ' + '\\' + cmd_str1 + cmd_str2 + ', sock_port, my_ip);' + '\t\tsnprintf(command,1024, "start mintty.exe -t ' + + '\\"VHDL-Testbench Logs\\" -h always bash.exe -c ' + + '\\' + cmd_str1 + cmd_str2 + ', sock_port, my_ip);' ) else: cfunc.write( diff --git a/src/ngspice_ghdl.py b/src/ngspice_ghdl.py index 7fc8c93..4db8062 100755 --- a/src/ngspice_ghdl.py +++ b/src/ngspice_ghdl.py @@ -274,7 +274,8 @@ class Mainwindow(QtWidgets.QWidget): if os.name == "nt": self.process.finished.connect(self.createSchematicLib) - self.process.readyReadStandardOutput.connect(self.readAllStandard) + self.process \ + .readyReadStandardOutput.connect(self.readAllStandard) except BaseException: print("There is error in 'make' ") -- cgit