diff options
author | Sunil Shetye | 2019-06-27 16:43:26 +0530 |
---|---|---|
committer | GitHub | 2019-06-27 16:43:26 +0530 |
commit | a620e3f94c46f02d7ee1b58bdb5fb7cc8e7be2f1 (patch) | |
tree | d1d4bf9d8140c06be8ab22d530c53d4838851b2c /src/subcircuit/Subcircuit.py | |
parent | b9957bac0e86410007b0b728e58edeca5aa52d85 (diff) | |
parent | 0811375e0a4769ef0e31efbd85418ccc1d41816e (diff) | |
download | eSim-a620e3f94c46f02d7ee1b58bdb5fb7cc8e7be2f1.tar.gz eSim-a620e3f94c46f02d7ee1b58bdb5fb7cc8e7be2f1.tar.bz2 eSim-a620e3f94c46f02d7ee1b58bdb5fb7cc8e7be2f1.zip |
Merge pull request #107 from anjalijaiswal08/UploadSubcircuit
Upload subcircuit
Diffstat (limited to 'src/subcircuit/Subcircuit.py')
-rw-r--r-- | src/subcircuit/Subcircuit.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/subcircuit/Subcircuit.py b/src/subcircuit/Subcircuit.py index d2e7ec5a..8f55ea13 100644 --- a/src/subcircuit/Subcircuit.py +++ b/src/subcircuit/Subcircuit.py @@ -4,6 +4,7 @@ from projManagement.Validation import Validation from subcircuit.newSub import NewSub from subcircuit.openSub import openSub from subcircuit.convertSub import convertSub +from subcircuit.uploadSub import UploadSub # This class creates Subcircuit GUI. @@ -41,11 +42,17 @@ class Subcircuit(QtGui.QWidget): '<b>To convert Subcircuit Kicad Netlist to Ngspice Netlist</b>') self.convertbtn.setFixedSize(200, 40) self.convertbtn.clicked.connect(self.convertsch) + self.uploadbtn = QtGui.QPushButton('Upload a Subcircuit') + self.uploadbtn.setToolTip( + '<b>To Upload a subcircuit</b>') + self.uploadbtn.setFixedSize(180, 38) + self.uploadbtn.clicked.connect(self.uploadSub) self.hbox = QtGui.QHBoxLayout() self.hbox.addWidget(self.newbtn) self.hbox.addWidget(self.editbtn) self.hbox.addWidget(self.convertbtn) + self.hbox.addWidget(self.uploadbtn) self.hbox.addStretch(1) self.vbox = QtGui.QVBoxLayout() @@ -73,3 +80,7 @@ class Subcircuit(QtGui.QWidget): def convertsch(self): self.obj_convertsubcircuit = convertSub(self.obj_dockarea) self.obj_convertsubcircuit.createSub() + + def uploadSub(self): + self.obj_uploadsubcircuit = UploadSub() + self.obj_uploadsubcircuit.upload() |