diff options
author | athulappadan | 2015-09-10 14:39:43 +0530 |
---|---|---|
committer | athulappadan | 2015-09-10 14:39:43 +0530 |
commit | 0555a258b54367f401789cff17191dd58d0c1f45 (patch) | |
tree | f1d6600490f96025dad7dae3569ee212adadb89d /src/frontEnd/Application.py | |
parent | 361574908ffff1c613d1b6c93acaee0670f7d8dd (diff) | |
download | eSim-0555a258b54367f401789cff17191dd58d0c1f45.tar.gz eSim-0555a258b54367f401789cff17191dd58d0c1f45.tar.bz2 eSim-0555a258b54367f401789cff17191dd58d0c1f45.zip |
Nghdl icon added
Diffstat (limited to 'src/frontEnd/Application.py')
-rwxr-xr-x | src/frontEnd/Application.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index 2aa7c649..ffa4ccda 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -28,6 +28,7 @@ from configuration.Appconfig import Appconfig from projManagement.openProject import OpenProjectInfo from projManagement.newProject import NewProjectInfo from projManagement.Kicad import Kicad +from projManagement import Worker from frontEnd import ProjectExplorer from frontEnd import Workspace from frontEnd import DockArea @@ -126,6 +127,9 @@ class Application(QtGui.QMainWindow): self.subcircuit=QtGui.QAction(QtGui.QIcon('../../images/subckt.png'),'<b>Subcircuit</b>',self) self.subcircuit.triggered.connect(self.open_subcircuit) + + self.nghdl = QtGui.QAction(QtGui.QIcon('../../images/nghdl.png'), '<b><Nghdl</b>', self) + self.nghdl.triggered.connect(self.open_nghdl) #Adding Action Widget to tool bar self.lefttoolbar = QtGui.QToolBar('Left ToolBar') @@ -137,6 +141,7 @@ class Application(QtGui.QMainWindow): self.lefttoolbar.addAction(self.pcb) self.lefttoolbar.addAction(self.model) self.lefttoolbar.addAction(self.subcircuit) + self.lefttoolbar.addAction(self.nghdl) self.lefttoolbar.setOrientation(QtCore.Qt.Vertical) self.lefttoolbar.setIconSize(QSize(40,40)) @@ -203,6 +208,22 @@ class Application(QtGui.QMainWindow): print "Subcircuit editor is called" self.obj_appconfig.print_info('Subcircuit editor is called') self.obj_Mainview.obj_dockarea.subcircuiteditor() + + def open_nghdl(self): + print "Nghdl is called" + self.obj_appconfig.print_info('Nghdl is called') + + try: + self.cmd = 'nghdl' + self.obj_workThread = Worker.WorkerThread(self.cmd) + self.obj_workThread.start() + + except Exception as e: + self.msg = QtGui.QErrorMessage(None) + self.msg.showMessage('Error while opening nghdl' + str(e)) + self.obj_appconfig.print_error('Error while opening nghdl' + str(e)) + self.msg.setWindowTitle("Error Message") + def exit_project(self): |