@@ -207,7 +207,7 | |||
|
207 | 207 | for k in range(0, len(var_lines2) / 5): |
|
208 | 208 | var_lines=["\n"] |
|
209 | 209 | var_lines.append(" "+self.var_Elabel+" "+i2s(var_n)+"/"+i2s(self.var_Discs)+"\n") |
|
210 |
var_lines.append("Year Doy Folder |
|
|
210 | var_lines.append("Year Doy Folder"+" "*6+"Set"+" "*9+"Time range\n") | |
|
211 | 211 | var_lines.extend(var_lines2[(5*k):(5*(k+1))]) |
|
212 | 212 | var_lines.append("\n") |
|
213 | 213 | var_labels.append(var_lines) |
@@ -15,11 +15,12 | |||
|
15 | 15 | """ |
|
16 | 16 | #var_cmd="wodim --devices | grep /dev/ | awk -F\' '{print $2}'" #Funciona en consola pero no en python ΒΏ? |
|
17 | 17 | var_cmd="wodim --devices | grep /dev/ | awk '{print $2}' | awk -F= '{print $2}'" |
|
18 | ||
|
18 | 19 | var_output = commands.getstatusoutput(var_cmd) |
|
19 | 20 | if var_output[0] != 0: |
|
20 | self.txtInfo.append("No se pudo encontrar los dispositivos de grabacion, output_error:" + str(var_output)) | |
|
21 | self.txtInfo.append("No recording devices") | |
|
21 | 22 | else: |
|
22 | self.txtInfo.append("dispositivos encontrados") | |
|
23 | # self.txtInfo.append("dispositivos encontrados") | |
|
23 | 24 | var_devices = var_output[1].split('\n') |
|
24 | 25 | |
|
25 | 26 | var_tmp=[] |
@@ -87,6 +88,11 | |||
|
87 | 88 | self.lstDcapacity.setCurrentIndex(4) |
|
88 | 89 | self.txtDcapacity.setValue(100.0) |
|
89 | 90 | self.txtDcapacity.setReadOnly(False) |
|
91 | self.txtDeviceA.setText("/dev/scd0") | |
|
92 | self.txtDeviceB.setText("/dev/scd1") | |
|
93 | self.txtDeviceC.setText("/dev/scd2") | |
|
94 | self.txtDeviceD.setText("/dev/scd3") | |
|
95 | ||
|
90 | 96 | |
|
91 | 97 | |
|
92 | 98 | #----------------------------------------------------- crea parameters.conf --------------------------------------------------------------- |
@@ -54,9 +54,10 | |||
|
54 | 54 | if os.path.isfile("parameters.conf"): |
|
55 | 55 | self.txtInfo.append("Parameters were loaded from configuration file") |
|
56 | 56 | functions2.get_parameters_conf(self) |
|
57 |
self.txtInfo.append(" |
|
|
57 | self.txtInfo.append("Total number of discs for recording: "+str(self.var_Discs * self.var_Copys)) | |
|
58 | ||
|
58 | 59 | else: |
|
59 | self.txtInfo.append("Elija los parametros de configuracion") | |
|
60 | # self.txtInfo.append("Elija los parametros de configuracion") | |
|
60 | 61 | functions2.set_parameters_test(self) #Establece ciertos parametros, para pruebas |
|
61 | 62 | |
|
62 | 63 | functions2.set_vars(self) #Carga las variables de la clase con los parametros seleccionados |
@@ -76,6 +77,10 | |||
|
76 | 77 | self.connect(self.var_process, QtCore.SIGNAL('readyReadStandardError()'), self.readError) |
|
77 | 78 | self.connect(self.var_process, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished) |
|
78 | 79 | |
|
80 | self.var_process_check = QtCore.QProcess() | |
|
81 | self.connect(self.var_process_check, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_check) | |
|
82 | self.connect(self.var_process_check, QtCore.SIGNAL('readyReadStandardError()'), self.readError_check) | |
|
83 | self.connect(self.var_process_check, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_check) | |
|
79 | 84 | |
|
80 | 85 | def write(self, txt): |
|
81 | 86 | self.txtInfo.append(str(txt)) |
@@ -114,6 +119,18 | |||
|
114 | 119 | self.burning() |
|
115 | 120 | |
|
116 | 121 | |
|
122 | #----------------------------------------------------- Funciones del proceso de verificacion --------------------------------------------------------------- | |
|
123 | ||
|
124 | def readOuput_check(self): | |
|
125 | self.txtInfo.insertPlainText("stdout check: " + QtCore.QString(self.var_process_check.readAllStandardOutput())) | |
|
126 | ||
|
127 | def readError_check(self): | |
|
128 | self.txtInfo.setText("stderr check: " + QtCore.QString(self.var_process_check.readAllStandardError())) | |
|
129 | ||
|
130 | def finished_check(self): | |
|
131 | self.txtInfo.append("proceso terminado finished() check"+QtCore.QString(self.var_process_check.exitCode())+"\n") | |
|
132 | ||
|
133 | ||
|
117 | 134 | #----------------------------------------------------- Obtencion de la ruta de los datos --------------------------------------------------------------- |
|
118 | 135 | |
|
119 | 136 | @pyqtSignature("") |
General Comments 0
You need to be logged in to leave comments.
Login now