diff options
author | Fahim | 2015-06-24 11:26:33 +0530 |
---|---|---|
committer | Fahim | 2015-06-24 11:26:33 +0530 |
commit | f7cf0e9a67627ed6ce73892a75445ba84e6b9b21 (patch) | |
tree | 3d4eb335a02347d289dad226d5b2ca202da9edad /src/frontEnd/Application.py | |
parent | f47a744451fe634efb487023f073321ceed4664c (diff) | |
parent | 6af9f606a72d3c4399873840de3c683d423df5a6 (diff) | |
download | eSim-f7cf0e9a67627ed6ce73892a75445ba84e6b9b21.tar.gz eSim-f7cf0e9a67627ed6ce73892a75445ba84e6b9b21.tar.bz2 eSim-f7cf0e9a67627ed6ce73892a75445ba84e6b9b21.zip |
Merge pull request #34 from FOSSEE-Manipal/master
Added subcircuit module and storing previous values for same
Diffstat (limited to 'src/frontEnd/Application.py')
-rwxr-xr-x | src/frontEnd/Application.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index 01e445a9..9fce17b0 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -109,6 +109,9 @@ class Application(QtGui.QMainWindow): self.model = QtGui.QAction(QtGui.QIcon('../../images/model.png'),'<b>Model Editor</b>',self) self.model.triggered.connect(self.open_modelEditor) + self.subcircuit=QtGui.QAction(QtGui.QIcon('../../images/subckt.png'),'<b>Subcircuit</b>',self) + self.subcircuit.triggered.connect(self.open_subcircuit) + #Adding Action Widget to tool bar self.lefttoolbar = QtGui.QToolBar('Left ToolBar') self.addToolBar(QtCore.Qt.LeftToolBarArea, self.lefttoolbar) @@ -118,6 +121,7 @@ class Application(QtGui.QMainWindow): self.lefttoolbar.addAction(self.footprint) self.lefttoolbar.addAction(self.pcb) self.lefttoolbar.addAction(self.model) + self.lefttoolbar.addAction(self.subcircuit) self.lefttoolbar.setOrientation(QtCore.Qt.Vertical) self.lefttoolbar.setIconSize(QSize(40,40)) @@ -179,6 +183,11 @@ class Application(QtGui.QMainWindow): self.msg = QtGui.QErrorMessage() self.msg.showMessage('Please select the project first. You can either create new project or open existing project') self.msg.setWindowTitle("Error Message") + + def open_subcircuit(self): + print "Subcircuit editor is called" + self.obj_appconfig.print_info('Subcircuit editor is called') + self.obj_Mainview.obj_dockarea.subcircuiteditor() def exit_project(self): |