diff options
author | fahim | 2015-02-18 15:40:04 +0530 |
---|---|---|
committer | fahim | 2015-02-18 15:40:04 +0530 |
commit | 6e070b2fccfb9142ead325a9f437f28144e99ce8 (patch) | |
tree | 739340cf5bde7a0424064018da689dd2c18e5dac /src/frontEnd/ViewManagement.py | |
parent | 756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496 (diff) | |
download | eSim-6e070b2fccfb9142ead325a9f437f28144e99ce8.tar.gz eSim-6e070b2fccfb9142ead325a9f437f28144e99ce8.tar.bz2 eSim-6e070b2fccfb9142ead325a9f437f28144e99ce8.zip |
Subject: Deleted Unwanted file
Description: Deleted unwanted file
Diffstat (limited to 'src/frontEnd/ViewManagement.py')
-rwxr-xr-x | src/frontEnd/ViewManagement.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/frontEnd/ViewManagement.py b/src/frontEnd/ViewManagement.py index 7d6ca9cd..5b7dc262 100755 --- a/src/frontEnd/ViewManagement.py +++ b/src/frontEnd/ViewManagement.py @@ -21,6 +21,7 @@ from PyQt4 import QtCore from PyQt4 import QtGui +from projManagement.openKicad import Kicad class ViewManagement(QtGui.QSplitter): @@ -31,6 +32,10 @@ class ViewManagement(QtGui.QSplitter): # Creating dictionary which hold all the views self.views = {} + #Creating object of openKicad.py + + self.obj_kicad = Kicad() + # define the basic framework of view areas for the # application self.createView() @@ -56,27 +61,35 @@ class ViewManagement(QtGui.QSplitter): self.kicad_btn = QtGui.QPushButton() self.kicad_btn.setIcon(QtGui.QIcon('../images/default.png')) self.kicad_btn.setIconSize(QtCore.QSize(50,50)) + self.kicad_btn.setToolTip('<b>Open Schematic</b>') + self.kicad_btn.clicked.connect(self.obj_kicad.openSchematic) self.grid.addWidget(self.kicad_btn,0,0) self.conversion_btn = QtGui.QPushButton() self.conversion_btn.setIcon(QtGui.QIcon('../images/default.png')) self.conversion_btn.setIconSize(QtCore.QSize(50,50)) + self.conversion_btn.setToolTip('<b>Convert Kicad to Ngspice</b>') self.grid.addWidget(self.conversion_btn,0,1) self.ngspice_btn = QtGui.QPushButton() self.ngspice_btn.setIcon(QtGui.QIcon('../images/default.png')) self.ngspice_btn.setIconSize(QtCore.QSize(50,50)) + self.ngspice_btn.setToolTip('<b>Simulation</b>') self.grid.addWidget(self.ngspice_btn,0,2) self.footprint_btn = QtGui.QPushButton() self.footprint_btn.setIcon(QtGui.QIcon('../images/default.png')) self.footprint_btn.setIconSize(QtCore.QSize(50,50)) + self.footprint_btn.setToolTip('<b>Footprint Editor</b>') + self.footprint_btn.clicked.connect(self.obj_kicad.openFootprint) self.grid.addWidget(self.footprint_btn,1,0) self.pcb_btn = QtGui.QPushButton() self.pcb_btn.setIcon(QtGui.QIcon('../images/default.png')) self.pcb_btn.setIconSize(QtCore.QSize(50,50)) + self.pcb_btn.setToolTip('<b>PCB Layout</b>') + self.pcb_btn.clicked.connect(self.obj_kicad.openLayout) self.grid.addWidget(self.pcb_btn,1,1) @@ -104,7 +117,7 @@ class ViewManagement(QtGui.QSplitter): self.views[name] = settype() - + |