diff options
author | nilshah98 | 2019-06-25 12:55:20 +0530 |
---|---|---|
committer | nilshah98 | 2019-06-25 12:55:20 +0530 |
commit | c263636b86d204c9500ed2fe58e4f9db74c28bee (patch) | |
tree | fc23c9c31d0821fa0deec33aa452f70df602217d /src/frontEnd | |
parent | 73399832febef4407eb8d8a9e57d535f18b18654 (diff) | |
download | eSim-c263636b86d204c9500ed2fe58e4f9db74c28bee.tar.gz eSim-c263636b86d204c9500ed2fe58e4f9db74c28bee.tar.bz2 eSim-c263636b86d204c9500ed2fe58e4f9db74c28bee.zip |
Resolves #100
Diffstat (limited to 'src/frontEnd')
-rwxr-xr-x | src/frontEnd/Application.py | 18 | ||||
-rw-r--r-- | src/frontEnd/DockArea.py | 7 | ||||
-rw-r--r-- | src/frontEnd/ProjectExplorer.py | 2 |
3 files changed, 17 insertions, 10 deletions
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: diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py index 99270366..0aa8ff17 100644 --- a/src/frontEnd/DockArea.py +++ b/src/frontEnd/DockArea.py @@ -20,7 +20,7 @@ class DockArea(QtGui.QMainWindow): """ This class contains function for designing UI of all the editors in dock area part: - + - Test Editor. - Model Editor. - Python Plotting. @@ -186,7 +186,10 @@ class DockArea(QtGui.QMainWindow): count = count + 1 def kicadToNgspiceEditor(self, clarg1, clarg2=None): - """This function is creating Editor UI for Kicad to Ngspice conversion.""" + """ + This function is creating Editor UI for- + Kicad to Ngspice conversion. + """ global count self.kicadToNgspiceWidget = QtGui.QWidget() self.kicadToNgspiceLayout = QtGui.QVBoxLayout() diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py index e1e3ddad..638b3147 100644 --- a/src/frontEnd/ProjectExplorer.py +++ b/src/frontEnd/ProjectExplorer.py @@ -56,7 +56,7 @@ class ProjectExplorer(QtGui.QWidget): pathlist = parents.split(os.sep) parentnode = QtGui.QTreeWidgetItem( self.treewidget, [pathlist[-1], parents] - ) + ) for files in children: QtGui.QTreeWidgetItem( parentnode, [files, os.path.join(parents, files)]) |