##// END OF EJS Templates
***
ralonso -
r52:53
parent child
Show More
@@ -20,7 +20,7
20 self.statusDpath = True No newline at end of file
20 self.statusDpath = True
21 self.statusRpath = True No newline at end of file
21 self.statusRpath = True
22 self.lstDcapacity.setCurrentIndex(4)
22 self.lstDcapacity.setCurrentIndex(4)
No newline at end of file
23 self.txtDcapacity.setValue(250.0) No newline at end of file
23 self.txtDcapacity.setValue(100.0) No newline at end of file
24 self.txtDcapacity.setReadOnly(False) No newline at end of file
24 self.txtDcapacity.setReadOnly(False)
25 No newline at end of file
25
26 No newline at end of file
26
@@ -65,17 +65,19
65 self.var_process = QtCore.QProcess() No newline at end of file
65 self.var_process = QtCore.QProcess()
66 self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput) No newline at end of file
66 self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput)
67 self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardError()'), self.readError) No newline at end of file
67 self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardError()'), self.readError)
68 self.connect(self.var_process, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished1) No newline at end of file
68 No newline at end of file
69
69 def readOuput(self):
70 def readOuput(self):
No newline at end of file
71 self.txtSburn.append("stdout: " + QtCore.QString(self.var_process.readAllStandardOutput())) No newline at end of file
70 self.txtSburn.append(QtCore.QString(self.var_process.readAllStandardOutput())) No newline at end of file
71 No newline at end of file
72
72 def readError(self):
73 def readError(self):
No newline at end of file
74 self.txtSburn.append("stderr: " + QtCore.QString(self.var_process.readAllStandardError()))
73 self.txtSburn.append(QtCore.QString(self.var_process.readAllStandardError())) No newline at end of file
No newline at end of file
75
No newline at end of file
76 def finished1(self):
No newline at end of file
77 self.txtInfo.append("proceso terminado finished()")
No newline at end of file
78 print self.var_process.exitCode() No newline at end of file
74 No newline at end of file
79
75 def write(self, txt):
80 def write(self, txt):
No newline at end of file
76 """
No newline at end of file
77 Escribe la salida estandar eb txtInfo
No newline at end of file
78 """ No newline at end of file
79 self.txtInfo.append(str(txt)) No newline at end of file
81 self.txtInfo.append(str(txt))
80 No newline at end of file
82
81 No newline at end of file
83
General Comments 0
You need to be logged in to leave comments. Login now