diff options
author | athulappadan | 2015-08-26 11:40:29 +0530 |
---|---|---|
committer | athulappadan | 2015-08-26 11:40:29 +0530 |
commit | 826672e71e2f2f3320d72fd81146b234ffe7ce0c (patch) | |
tree | d35242cd7a87c64abc4a81a892b6ae3af5286745 /src | |
parent | e3d3510e203a76cb0d58408338501038a195c923 (diff) | |
download | nghdl-826672e71e2f2f3320d72fd81146b234ffe7ce0c.tar.gz nghdl-826672e71e2f2f3320d72fd81146b234ffe7ce0c.tar.bz2 nghdl-826672e71e2f2f3320d72fd81146b234ffe7ce0c.zip |
Bug fixed: nghdl window is now running on first try
Diffstat (limited to 'src')
-rwxr-xr-x | src/ngspice_ghdl.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ngspice_ghdl.py b/src/ngspice_ghdl.py index 311ec4d..9a73d26 100755 --- a/src/ngspice_ghdl.py +++ b/src/ngspice_ghdl.py @@ -68,7 +68,7 @@ class Mainwindow(QtGui.QWidget): def closeWindow(self): try: - self.process.kill() + self.process.close() except: pass print "Close button clicked" @@ -212,8 +212,10 @@ class Mainwindow(QtGui.QWidget): path = os.getcwd() #subprocess.call(cmd,shell=True) command = "cd "+path +";"+cmd +";"+"make install" + #command = "cd "+path +";"+cmd self.args = ['-into', str(self.terminal.winId()),'-hold','+s','-e', command] self.process.start('xterm', self.args) + print "pid ------ >",self.process.pid() #stdouterr = os.popen4(cmd)[1].read() @@ -239,11 +241,12 @@ class Mainwindow(QtGui.QWidget): except: print "There is error during in 'make install' " quit() + def uploadModle(self): print "Upload button clicked" try: - self.process.kill() + self.process.close() except: pass try: @@ -258,7 +261,7 @@ class Mainwindow(QtGui.QWidget): self.addingModelInModpath() self.createModelFiles() self.runMake() - self.runMakeInstall() + #self.runMakeInstall() else: QtGui.QMessageBox.about(self,'Message','''<b>Important Message.</b><br/><br/>This accepts only <b>.vhdl</b> file ''') except: |