From 235129377240890a15ffbf89849a119752d91103 Mon Sep 17 00:00:00 2001 From: Fahim Date: Tue, 2 Sep 2014 12:32:51 +0530 Subject: Subject: Python Plotting Changes Description: Below changes were made for python plotting. 1. Changes in newProject.py 2.Changes in KicadtoNgspice.py 3.Added new file pythonPlotting.py 4.Added matplot package in the installation script --- OSCAD/forntEnd/newProject.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) mode change 100644 => 100755 OSCAD/forntEnd/newProject.py (limited to 'OSCAD/forntEnd/newProject.py') diff --git a/OSCAD/forntEnd/newProject.py b/OSCAD/forntEnd/newProject.py old mode 100644 new mode 100755 index 38018bb..f4987f1 --- a/OSCAD/forntEnd/newProject.py +++ b/OSCAD/forntEnd/newProject.py @@ -21,8 +21,6 @@ import selectOption from string import maketrans from PIL import Image, ImageTk - - class ProjectInfo(template.MyTemplate): """ Class for accept model information from user """ def body(self, master): @@ -318,6 +316,16 @@ class ProjectParam(template.MyTemplate): self.text.insert(END, "Select a tool from tool menu\n") self.text.yview(END) + # opening pythonplotting: + command ="python " + self.OSCAD_HOME+"/forntEnd/pythonPlotting.py "+os.getcwd()+" "+self.projectName + + try: + thread.start_new_thread(self.call_system,(command,)) + except Exception,err: + print err + + + def openSMCSim(self,e=None): self.text.insert(END, " Running scilab based circuit simulator .........\n") self.text.yview(END) -- cgit