diff options
author | fahim | 2015-05-26 17:29:04 +0530 |
---|---|---|
committer | fahim | 2015-05-26 17:29:04 +0530 |
commit | bca9871d3ba7b18738c8f326cf9511834679b555 (patch) | |
tree | b262d9a8384c4d62a2aa6f16756502c8d0d061f7 /src/frontEnd/Application.py | |
parent | a062393843db4033f11837a3c7800136c00fef36 (diff) | |
download | eSim-bca9871d3ba7b18738c8f326cf9511834679b555.tar.gz eSim-bca9871d3ba7b18738c8f326cf9511834679b555.tar.bz2 eSim-bca9871d3ba7b18738c8f326cf9511834679b555.zip |
Subject: Completed Python Plotting
Description: Completed Python Plotting
Diffstat (limited to 'src/frontEnd/Application.py')
-rwxr-xr-x | src/frontEnd/Application.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index 97e07a17..7f00e7a7 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -92,19 +92,19 @@ class Application(QtGui.QMainWindow): self.topToolbar.addAction(self.helpfile) #Left Tool bar Action Widget - self.kicad = QtGui.QAction(QtGui.QIcon('../images/default.png'),'<b>Open Schematic</b>',self) + self.kicad = QtGui.QAction(QtGui.QIcon('../images/kicad.png'),'<b>Open Schematic</b>',self) self.kicad.triggered.connect(self.obj_kicad.openSchematic) - self.conversion = QtGui.QAction(QtGui.QIcon('../images/default.png'),'<b>Convert Kicad to Ngspice</b>',self) + self.conversion = QtGui.QAction(QtGui.QIcon('../images/ki-ng.png'),'<b>Convert Kicad to Ngspice</b>',self) self.conversion.triggered.connect(self.obj_kicad.openKicadToNgspice) - self.ngspice = QtGui.QAction(QtGui.QIcon('../images/default.png'), '<b>Simulation</b>', self) + self.ngspice = QtGui.QAction(QtGui.QIcon('../images/ngspice.png'), '<b>Simulation</b>', self) self.ngspice.triggered.connect(self.open_ngspice) - self.footprint = QtGui.QAction(QtGui.QIcon('../images/default.png'),'<b>Footprint Editor</b>',self) + self.footprint = QtGui.QAction(QtGui.QIcon('../images/footprint.png'),'<b>Footprint Editor</b>',self) self.footprint.triggered.connect(self.obj_kicad.openFootprint) - self.pcb = QtGui.QAction(QtGui.QIcon('../images/default.png'),'<b>PCB Layout</b>',self) + self.pcb = QtGui.QAction(QtGui.QIcon('../images/pcb.png'),'<b>PCB Layout</b>',self) self.pcb.triggered.connect(self.obj_kicad.openLayout) #Adding Action Widget to tool bar @@ -164,7 +164,14 @@ class Application(QtGui.QMainWindow): os.remove("plot_data_i.txt") os.remove("plot_data_v.txt") #Calling Python Plotting - self.obj_Mainview.obj_dockarea.plottingEditor() + try: + self.obj_Mainview.obj_dockarea.plottingEditor() + except Exception as e: + self.msg = QtGui.QErrorMessage(None) + self.msg.showMessage('Error while opening python plotting.') + print "Exception:",str(e) + self.msg.setWindowTitle("Error Message") + except Exception as e: self.msg = QtGui.QErrorMessage(None) self.msg.showMessage('Unable to copy plot data file to project directory.') |