@@ -20,7 +20,7 | |||||
20 | self.statusDpath = True |
|
20 | self.statusDpath = True | |
21 | self.statusRpath = True |
|
21 | self.statusRpath = True | |
22 | self.lstDcapacity.setCurrentIndex(4) |
|
22 | self.lstDcapacity.setCurrentIndex(4) | |
23 |
self.txtDcapacity.setValue( |
|
23 | self.txtDcapacity.setValue(250.0) | |
24 | self.txtDcapacity.setReadOnly(False) |
|
24 | self.txtDcapacity.setReadOnly(False) | |
25 |
|
25 | |||
26 |
|
26 |
@@ -65,17 +65,19 | |||||
65 | self.var_process = QtCore.QProcess() |
|
65 | self.var_process = QtCore.QProcess() | |
66 | self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput) |
|
66 | self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput) | |
67 | self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardError()'), self.readError) |
|
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 | def readOuput(self): |
|
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 | def readError(self): |
|
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 | def write(self, txt): |
|
80 | def write(self, txt): | |
76 | """ |
|
|||
77 | Escribe la salida estandar eb txtInfo |
|
|||
78 | """ |
|
|||
79 | self.txtInfo.append(str(txt)) |
|
81 | self.txtInfo.append(str(txt)) | |
80 |
|
82 | |||
81 |
|
83 | |||
@@ -276,6 +278,8 | |||||
276 |
|
278 | |||
277 | # self.process.start(var_cmd) |
|
279 | # self.process.start(var_cmd) | |
278 | self.var_process.start(var_cmd) |
|
280 | self.var_process.start(var_cmd) | |
|
281 | # self.var_process.waitForFinished() | |||
|
282 | self.txtInfo.append("ejecutandose") | |||
279 |
|
283 | |||
280 |
|
284 | |||
281 | # # Se leen todos los archivos .dat creados para crear las etiquetas en los archivos .ps |
|
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