From 826672e71e2f2f3320d72fd81146b234ffe7ce0c Mon Sep 17 00:00:00 2001 From: athulappadan Date: Wed, 26 Aug 2015 11:40:29 +0530 Subject: Bug fixed: nghdl window is now running on first try --- src/ngspice_ghdl.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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','''Important Message.

This accepts only .vhdl file ''') except: -- cgit