From c263636b86d204c9500ed2fe58e4f9db74c28bee Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Tue, 25 Jun 2019 12:55:20 +0530 Subject: Resolves #100 --- src/frontEnd/Application.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/frontEnd/Application.py') diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index 97f895ad..c0dddf51 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -71,9 +71,11 @@ class Application(QtGui.QMainWindow): In this function we are setting icons, short-cuts,and defining functonality for: - - Top-tool-bar (New project, Open project, Close project, Help option ) - - Left-tool-bar (Open Schematic, Convert KiCad to NgSpice, Simuation, - Model Editor, Subcircuit, NGHDL, Modelica Converter, OM Optimisation ) + - Top-tool-bar (New project, Open project, Close project,\ + Help option ) + - Left-tool-bar (Open Schematic, Convert KiCad to NgSpice,\ + Simuation, Model Editor, Subcircuit, NGHDL, Modelica\ + Converter, OM Optimisation ) """ # Top Tool bar self.newproj = QtGui.QAction( @@ -199,11 +201,12 @@ class Application(QtGui.QMainWindow): exit message and buttons 'Yes', 'No'. 1. If 'Yes' is pressed: - - it checks that program(process) in procThread_list (list made in - Appconfig.py): + - it checks that program(process) in procThread_list\ + (list made in Appconfig.py): - if available it terminates that program - - if the program(process) is not available, it checks for it + - if the program(process) is not available,\ + it checks for it in process_obj (list made in Appconfig.py) if found it closes the program. @@ -341,7 +344,8 @@ class Application(QtGui.QMainWindow): # Fail Safe ===> count += 1 if count >= 100: - raise Exception("ngspice taking too long, check netlist file") + raise Exception( + "ngspice taking too long, check netlist file") # Calling Python Plotting try: -- cgit