# SVN changeset patch # User ralonso # Date 2010-05-18 15:19:39.358379 # Revision 53 *** Index: bk_manager/trunk/functions/functions2.py =================================================================== diff --git a/bk_manager/trunk/functions/functions2.py b/bk_manager/trunk/functions/functions2.py --- a/bk_manager/trunk/functions/functions2.py (revision 52) +++ b/bk_manager/trunk/functions/functions2.py (revision 53) @@ -20,7 +20,7 @@ self.statusDpath = True self.statusRpath = True self.lstDcapacity.setCurrentIndex(4) - self.txtDcapacity.setValue(100.0) + self.txtDcapacity.setValue(250.0) self.txtDcapacity.setReadOnly(False) Index: bk_manager/trunk/ui/MainWindow.py =================================================================== diff --git a/bk_manager/trunk/ui/MainWindow.py b/bk_manager/trunk/ui/MainWindow.py --- a/bk_manager/trunk/ui/MainWindow.py (revision 52) +++ b/bk_manager/trunk/ui/MainWindow.py (revision 53) @@ -65,17 +65,19 @@ self.var_process = QtCore.QProcess() self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput) self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardError()'), self.readError) + self.connect(self.var_process, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished1) def readOuput(self): - self.txtSburn.append(QtCore.QString(self.var_process.readAllStandardOutput())) + self.txtSburn.append("stdout: " + QtCore.QString(self.var_process.readAllStandardOutput())) def readError(self): - self.txtSburn.append(QtCore.QString(self.var_process.readAllStandardError())) + self.txtSburn.append("stderr: " + QtCore.QString(self.var_process.readAllStandardError())) + + def finished1(self): + self.txtInfo.append("proceso terminado finished()") + print self.var_process.exitCode() def write(self, txt): - """ - Escribe la salida estandar eb txtInfo - """ self.txtInfo.append(str(txt)) @@ -276,6 +278,8 @@ # self.process.start(var_cmd) self.var_process.start(var_cmd) +# self.var_process.waitForFinished() + self.txtInfo.append("ejecutandose") # # Se leen todos los archivos .dat creados para crear las etiquetas en los archivos .ps