From 3e626db04e3d2fadebb649cd55e1035e7eeca395 Mon Sep 17 00:00:00 2001 From: fahim Date: Mon, 13 Apr 2015 14:57:07 +0530 Subject: Subject: Added summer.xml for testing purpose. Corrected code for closing all application if Application window closed. Description: Addes summer.xml for testing purpose.Corrected code for closing application --- src/configuration/Appconfig.py | 2 -- src/configuration/Appconfig.pyc | Bin 1303 -> 1331 bytes src/frontEnd/Application.py | 13 +++++++------ src/kicadtoNgspice/Analysis.pyc | Bin 11712 -> 11829 bytes src/kicadtoNgspice/KicadtoNgspice.pyc | Bin 4646 -> 4646 bytes src/modelParamXML/Analog/summer.xml | 13 +++++++++++++ src/projManagement/Worker.py | 2 +- src/projManagement/Worker.pyc | Bin 1173 -> 1425 bytes src/projManagement/newProject.pyc | Bin 3816 -> 3816 bytes 9 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 src/modelParamXML/Analog/summer.xml diff --git a/src/configuration/Appconfig.py b/src/configuration/Appconfig.py index a5dfa546..10bf5ffd 100644 --- a/src/configuration/Appconfig.py +++ b/src/configuration/Appconfig.py @@ -20,8 +20,6 @@ from PyQt4 import QtGui import os -global procThread_list # keeps tracking all the processes called -procThread_list = [] class Appconfig(QtGui.QWidget): """ diff --git a/src/configuration/Appconfig.pyc b/src/configuration/Appconfig.pyc index a9348ab9..7ba34c34 100644 Binary files a/src/configuration/Appconfig.pyc and b/src/configuration/Appconfig.pyc differ diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index 2863ed6c..4c876474 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -58,20 +58,21 @@ class Application(QtGui.QMainWindow): def initActions(self): - - self.newproj = QtGui.QAction(QtGui.QIcon('../images/newProject.svg'),'New Project',self) + + self.newproj = QtGui.QAction(QtGui.QIcon('../images/newProject.png'),'New Project',self) self.newproj.setShortcut('Ctrl+N') self.newproj.triggered.connect(self.new_project) - self.openproj = QtGui.QAction(QtGui.QIcon('../images/openProject.svg'),'Open Project',self) + + self.openproj = QtGui.QAction(QtGui.QIcon('../images/openProject.png'),'Open Project',self) self.openproj.setShortcut('Ctrl+O') self.openproj.triggered.connect(self.open_project) - self.exitproj = QtGui.QAction(QtGui.QIcon('../images/closeProject.svg'),'Exit',self) + self.exitproj = QtGui.QAction(QtGui.QIcon('../images/closeProject.png'),'Exit',self) self.exitproj.setShortcut('Ctrl+X') self.exitproj.triggered.connect(self.exit_project) - self.helpfile = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Help',self) + self.helpfile = QtGui.QAction(QtGui.QIcon('../images/helpProject.png'),'Help',self) self.helpfile.setShortcut('Ctrl+H') self.helpfile.triggered.connect(self.help_project) @@ -131,7 +132,7 @@ def main(args): It is main function of the module.It starts the application """ print "Hello Main" - app = QtGui.QApplication(sys.argv) + app = QtGui.QApplication(args) """ splash_pix = QtGui.QPixmap('../images/FreeEDAlogo.jpg') diff --git a/src/kicadtoNgspice/Analysis.pyc b/src/kicadtoNgspice/Analysis.pyc index e1a12cda..ccd3af5f 100644 Binary files a/src/kicadtoNgspice/Analysis.pyc and b/src/kicadtoNgspice/Analysis.pyc differ diff --git a/src/kicadtoNgspice/KicadtoNgspice.pyc b/src/kicadtoNgspice/KicadtoNgspice.pyc index 7fc34021..7370bd4a 100644 Binary files a/src/kicadtoNgspice/KicadtoNgspice.pyc and b/src/kicadtoNgspice/KicadtoNgspice.pyc differ diff --git a/src/modelParamXML/Analog/summer.xml b/src/modelParamXML/Analog/summer.xml new file mode 100644 index 00000000..94c356b1 --- /dev/null +++ b/src/modelParamXML/Analog/summer.xml @@ -0,0 +1,13 @@ + +summer +Analog +3 +Add parameters for Summer +2-V:1-NV + + Enter offset for input (default=0.0): + Enter gain for input 1 (default=1.0): + Enter gain for output (default=1.0): + Enter offset for output (default=0.0): + + diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py index d31ba7c3..96f0d57b 100644 --- a/src/projManagement/Worker.py +++ b/src/projManagement/Worker.py @@ -28,7 +28,7 @@ class WorkerThread(QtCore.QThread): def __del__(self): self.wait() - ''' + def run(self): print "Calling :",self.args self.call_system(self.args) diff --git a/src/projManagement/Worker.pyc b/src/projManagement/Worker.pyc index 237fe279..b3aadc37 100644 Binary files a/src/projManagement/Worker.pyc and b/src/projManagement/Worker.pyc differ diff --git a/src/projManagement/newProject.pyc b/src/projManagement/newProject.pyc index b97b85c2..2754be24 100644 Binary files a/src/projManagement/newProject.pyc and b/src/projManagement/newProject.pyc differ -- cgit