summaryrefslogtreecommitdiff
path: root/src/frontEnd/Application.py
diff options
context:
space:
mode:
authorrahulp132022-02-22 02:31:30 +0530
committerrahulp132022-02-22 02:31:30 +0530
commit87bc2c82192c948ddb88c52dfcd5213920920c2f (patch)
treee19ba25793ab0de04e9b337d653589c74aac2da1 /src/frontEnd/Application.py
parent272bf20219595c3c541797b1045ce9c400ab02d6 (diff)
downloadeSim-87bc2c82192c948ddb88c52dfcd5213920920c2f.tar.gz
eSim-87bc2c82192c948ddb88c52dfcd5213920920c2f.tar.bz2
eSim-87bc2c82192c948ddb88c52dfcd5213920920c2f.zip
Fixed typos and resolved flake8 issues
Diffstat (limited to 'src/frontEnd/Application.py')
-rw-r--r--[-rwxr-xr-x]src/frontEnd/Application.py29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index b852a941..24955c60 100755..100644
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -18,9 +18,9 @@
# =========================================================================
import os
-
import traceback
-if os.name == 'nt': # noqa
+
+if os.name == 'nt':
from frontEnd import pathmagic # noqa:F401
init_path = ''
else:
@@ -90,7 +90,7 @@ class Application(QtWidgets.QMainWindow):
- Top-tool-bar (New project, Open project, Close project, \
Mode switch, Help option)
- - Left-tool-bar (Open Schematic, Convert KiCad to NgSpice, \
+ - Left-tool-bar (Open Schematic, Convert KiCad to Ngspice, \
Simuation, Model Editor, Subcircuit, NGHDL, Modelica \
Converter, OM Optimisation)
"""
@@ -187,7 +187,7 @@ class Application(QtWidgets.QMainWindow):
self.conversion = QtWidgets.QAction(
QtGui.QIcon(init_path + 'images/ki-ng.png'),
- '<b>Convert Kicad to Ngspice</b>', self
+ '<b>Convert KiCad to Ngspice</b>', self
)
self.conversion.triggered.connect(self.obj_kicad.openKicadToNgspice)
@@ -210,7 +210,7 @@ class Application(QtWidgets.QMainWindow):
self.subcircuit.triggered.connect(self.open_subcircuit)
self.nghdl = QtWidgets.QAction(
- QtGui.QIcon(init_path + 'images/nghdl.png'), '<b>Nghdl</b>', self
+ QtGui.QIcon(init_path + 'images/nghdl.png'), '<b>NGHDL</b>', self
)
self.nghdl.triggered.connect(self.open_nghdl)
@@ -516,7 +516,7 @@ class Application(QtWidgets.QMainWindow):
self.msg.setWindowTitle("Error Message")
self.msg.setModal(True)
self.msg.showMessage(
- 'Please save and close all the Kicad ' +
+ 'Please save and close all the KiCad ' +
'windows first, then change the mode'
)
self.msg.exec_()
@@ -560,18 +560,18 @@ class Application(QtWidgets.QMainWindow):
if self.obj_Mainview.obj_dockarea.ngspiceEditor(
self.projDir) is False:
print(
- "No netlist file (*.cir.out)"
- "Check netlist file to change simulation parameters."
+ "Netlist file (*.cir.out) not found."
)
self.msg = QtWidgets.QErrorMessage()
self.msg.setModal(True)
- self.msg.setWindowTitle("Warning Message")
+ self.msg.setWindowTitle("Error Message")
self.msg.showMessage(
- 'No netlist file (*.cir.out)'
+ 'Netlist file (*.cir.out) not found.'
)
self.msg.exec_()
return
+
currTime = time.time()
count = 0
while True:
@@ -582,13 +582,14 @@ class Application(QtWidgets.QMainWindow):
# proc = 'xterm'
# Edited by Sumanto Kar 25/08/2021
- if os.name != 'nt' and self.checkIfProcessRunning('xterm') is False:
+ if os.name != 'nt' and \
+ self.checkIfProcessRunning('xterm') is False:
self.msg = QtWidgets.QErrorMessage()
self.msg.setModal(True)
self.msg.setWindowTitle("Warning Message")
self.msg.showMessage(
'Simulation was interrupted/failed. '
- 'Please close all the Xterm windows '
+ 'Please close all the Ngspice windows '
'and then rerun the simulation.'
)
self.msg.exec_()
@@ -794,8 +795,8 @@ class Application(QtWidgets.QMainWindow):
self.msg.setModal(True)
self.msg.setWindowTitle("Error Message")
self.msg.showMessage(
- 'Please select the project first. ' +
- 'You can either create a new project or open existing project'
+ 'Please select the project first. You can either ' +
+ 'create a new project or open an existing project'
)
self.msg.exec_()