##// END OF EJS Templates
***
ralonso -
r52:53
parent child
Show More
@@ -20,7 +20,7
20 20 self.statusDpath = True
21 21 self.statusRpath = True
22 22 self.lstDcapacity.setCurrentIndex(4)
23 self.txtDcapacity.setValue(100.0)
23 self.txtDcapacity.setValue(250.0)
24 24 self.txtDcapacity.setReadOnly(False)
25 25
26 26
@@ -65,17 +65,19
65 65 self.var_process = QtCore.QProcess()
66 66 self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput)
67 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)
68 69
69 70 def readOuput(self):
70 self.txtSburn.append(QtCore.QString(self.var_process.readAllStandardOutput()))
71 self.txtSburn.append("stdout: " + QtCore.QString(self.var_process.readAllStandardOutput()))
71 72
72 73 def readError(self):
73 self.txtSburn.append(QtCore.QString(self.var_process.readAllStandardError()))
74 self.txtSburn.append("stderr: " + QtCore.QString(self.var_process.readAllStandardError()))
75
76 def finished1(self):
77 self.txtInfo.append("proceso terminado finished()")
78 print self.var_process.exitCode()
74 79
75 80 def write(self, txt):
76 """
77 Escribe la salida estandar eb txtInfo
78 """
79 81 self.txtInfo.append(str(txt))
80 82
81 83
@@ -276,6 +278,8
276 278
277 279 # self.process.start(var_cmd)
278 280 self.var_process.start(var_cmd)
281 # self.var_process.waitForFinished()
282 self.txtInfo.append("ejecutandose")
279 283
280 284
281 285 # # Se leen todos los archivos .dat creados para crear las etiquetas en los archivos .ps
General Comments 0
You need to be logged in to leave comments. Login now