##// END OF EJS Templates
#Parece todo ok...
ralonso -
r79:80
parent child
Show More
@@ -32,15 +32,23
32
32
33 def setupUi2(self):
33 def setupUi2(self):
34
34
35
36 self.var_real_principal = False
37
38 self.var_real_detect_devices = False
39
35 self.var_real_iso = True
40 self.var_real_iso = True
36 self.var_real_burn = False
41 self.var_real_burn = False
37 self.var_real_check = False
42 self.var_real_check = False
38 self.var_real_eject = False
43 self.var_real_eject = False
39 # Reconocimiento de los dispositivos de grabacion
44
40 # functions2.detect_devices(self) #busca los dispositivos de grabacion
45 self.var_real_show_cmd = True
41 ####################################
46
42 functions2.set_devices_test(self) ############
47 if self.var_real_detect_devices == True:
43 ####################################
48 # Reconocimiento de los dispositivos de grabacion
49 functions2.detect_devices(self)
50 else:
51 functions2.set_devices_test(self)
44
52
45 #Inicialiazacion de variables
53 #Inicialiazacion de variables
46 self.var_Discs = 0 #Numero de discos del proyecto
54 self.var_Discs = 0 #Numero de discos del proyecto
@@ -65,7 +73,7
65 self.txtInfo.append("Parameters were loaded from configuration file")
73 self.txtInfo.append("Parameters were loaded from configuration file")
66 self.txtInfo.append("Total number of discs for recording: "+str(self.var_Discs * self.var_Copys))
74 self.txtInfo.append("Total number of discs for recording: "+str(self.var_Discs * self.var_Copys))
67
75
68 else:
76 elif self.var_real_principal == False:
69 functions2.set_parameters_test(self) #Establece ciertos parametros, para pruebas
77 functions2.set_parameters_test(self) #Establece ciertos parametros, para pruebas
70
78
71 functions2.set_vars(self) #Carga las variables de la clase con los parametros seleccionados
79 functions2.set_vars(self) #Carga las variables de la clase con los parametros seleccionados
@@ -365,6 +373,7
365
373
366 functions2.enabled_items1(False, self)
374 functions2.enabled_items1(False, self)
367 self.btnStartburn.setText("Start Burn")
375 self.btnStartburn.setText("Start Burn")
376 self.txtInfo.clear()
368
377
369
378
370
379
@@ -498,9 +507,12
498 self.txtInfo.append("########## Disc number: "+str(self.var_disc_n)+"##########")
507 self.txtInfo.append("########## Disc number: "+str(self.var_disc_n)+"##########")
499 self.txtInfo.append("------Creating iso file number: "+str(self.var_disc_n))
508 self.txtInfo.append("------Creating iso file number: "+str(self.var_disc_n))
500
509
501 if self.var_real_iso == True:
510 var_cmd = functions.cmd_iso(self)
502 var_cmd = functions.cmd_iso(self)
511
503 else:
512 if self.var_real_show_cmd == True:
513 self.txtInfo.append("CMD: "+var_cmd)
514
515 if self.var_real_iso == False:
504 self.txtInfo.append('**function_iso')
516 self.txtInfo.append('**function_iso')
505 var_cmd="echo 'function_iso'"
517 var_cmd="echo 'function_iso'"
506
518
@@ -513,13 +525,12
513 self.txtInfo.append("------Recording disc: "+str(self.var_disc_n)+", copy:"+str(self.var_copy_n))
525 self.txtInfo.append("------Recording disc: "+str(self.var_disc_n)+", copy:"+str(self.var_copy_n))
514 functions2.update_message(1, "BURNING", self)
526 functions2.update_message(1, "BURNING", self)
515
527
516 if self.var_real_burn == True:
528 var_cmd = functions.cmd_burn(self)
517 var_cmd = functions.cmd_burn(self)
529
518 #########################################
530 if self.var_real_show_cmd == True:
519 return######################################
531 self.txtInfo.append("CMD: "+var_cmd)
520 ########################################
532
521
533 if self.var_real_burn == False:
522 else:
523 self.txtInfo.append('**function_burn')
534 self.txtInfo.append('**function_burn')
524 var_cmd="echo 'function_burn'"
535 var_cmd="echo 'function_burn'"
525
536
@@ -531,9 +542,12
531 self.txtInfo.append("-----------checking disc:"+str(self.var_disc_n)+", copy:"+str(self.var_copy_n))
542 self.txtInfo.append("-----------checking disc:"+str(self.var_disc_n)+", copy:"+str(self.var_copy_n))
532 functions2.update_message(2, "CHECKING", self)
543 functions2.update_message(2, "CHECKING", self)
533
544
534 if self.var_real_check == True:
545 var_cmd = functions.cmd_check(self)
535 var_cmd = functions.cmd_check(self)
546
536 else:
547 if self.var_real_show_cmd == True:
548 self.txtInfo.append("CMD: "+var_cmd)
549
550 if self.var_real_check == False:
537 self.txtInfo.append('**function_check')
551 self.txtInfo.append('**function_check')
538 var_cmd="echo 'function_check'"
552 var_cmd="echo 'function_check'"
539
553
@@ -564,6 +578,10
564
578
565 def function_final(self):
579 def function_final(self):
566 self.txtInfo.append("Recording process is complete")
580 self.txtInfo.append("Recording process is complete")
581 if os.path.isfile("parameters.conf"):
582 os.remove("parameters.conf")
583 if os.path.isfile("burning.conf"):
584 os.remove("burning.conf")
567
585
568
586
569
587
General Comments 0
You need to be logged in to leave comments. Login now