@@ -32,15 +32,23 | |||
|
32 | 32 | |
|
33 | 33 | def setupUi2(self): |
|
34 | 34 | |
|
35 | ||
|
36 | self.var_real_principal = False | |
|
37 | ||
|
38 | self.var_real_detect_devices = False | |
|
39 | ||
|
35 | 40 | self.var_real_iso = True |
|
36 | 41 | self.var_real_burn = False |
|
37 | 42 | self.var_real_check = False |
|
38 | 43 | self.var_real_eject = False |
|
39 | # Reconocimiento de los dispositivos de grabacion | |
|
40 | # functions2.detect_devices(self) #busca los dispositivos de grabacion | |
|
41 | #################################### | |
|
42 | functions2.set_devices_test(self) ############ | |
|
43 | #################################### | |
|
44 | ||
|
45 | self.var_real_show_cmd = True | |
|
46 | ||
|
47 | if self.var_real_detect_devices == True: | |
|
48 | # Reconocimiento de los dispositivos de grabacion | |
|
49 | functions2.detect_devices(self) | |
|
50 | else: | |
|
51 | functions2.set_devices_test(self) | |
|
44 | 52 | |
|
45 | 53 | #Inicialiazacion de variables |
|
46 | 54 | self.var_Discs = 0 #Numero de discos del proyecto |
@@ -65,7 +73,7 | |||
|
65 | 73 | self.txtInfo.append("Parameters were loaded from configuration file") |
|
66 | 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 | 77 | functions2.set_parameters_test(self) #Establece ciertos parametros, para pruebas |
|
70 | 78 | |
|
71 | 79 | functions2.set_vars(self) #Carga las variables de la clase con los parametros seleccionados |
@@ -365,6 +373,7 | |||
|
365 | 373 | |
|
366 | 374 | functions2.enabled_items1(False, self) |
|
367 | 375 | self.btnStartburn.setText("Start Burn") |
|
376 | self.txtInfo.clear() | |
|
368 | 377 | |
|
369 | 378 | |
|
370 | 379 | |
@@ -498,9 +507,12 | |||
|
498 | 507 | self.txtInfo.append("########## Disc number: "+str(self.var_disc_n)+"##########") |
|
499 | 508 | self.txtInfo.append("------Creating iso file number: "+str(self.var_disc_n)) |
|
500 | 509 | |
|
501 | if self.var_real_iso == True: | |
|
502 | var_cmd = functions.cmd_iso(self) | |
|
503 | else: | |
|
510 | var_cmd = functions.cmd_iso(self) | |
|
511 | ||
|
512 | if self.var_real_show_cmd == True: | |
|
513 | self.txtInfo.append("CMD: "+var_cmd) | |
|
514 | ||
|
515 | if self.var_real_iso == False: | |
|
504 | 516 | self.txtInfo.append('**function_iso') |
|
505 | 517 | var_cmd="echo 'function_iso'" |
|
506 | 518 | |
@@ -513,13 +525,12 | |||
|
513 | 525 | self.txtInfo.append("------Recording disc: "+str(self.var_disc_n)+", copy:"+str(self.var_copy_n)) |
|
514 | 526 | functions2.update_message(1, "BURNING", self) |
|
515 | 527 | |
|
516 | if self.var_real_burn == True: | |
|
517 | var_cmd = functions.cmd_burn(self) | |
|
518 | ######################################### | |
|
519 | return###################################### | |
|
520 | ######################################## | |
|
521 | ||
|
522 | else: | |
|
528 | var_cmd = functions.cmd_burn(self) | |
|
529 | ||
|
530 | if self.var_real_show_cmd == True: | |
|
531 | self.txtInfo.append("CMD: "+var_cmd) | |
|
532 | ||
|
533 | if self.var_real_burn == False: | |
|
523 | 534 | self.txtInfo.append('**function_burn') |
|
524 | 535 | var_cmd="echo 'function_burn'" |
|
525 | 536 | |
@@ -531,9 +542,12 | |||
|
531 | 542 | self.txtInfo.append("-----------checking disc:"+str(self.var_disc_n)+", copy:"+str(self.var_copy_n)) |
|
532 | 543 | functions2.update_message(2, "CHECKING", self) |
|
533 | 544 | |
|
534 | if self.var_real_check == True: | |
|
535 | var_cmd = functions.cmd_check(self) | |
|
536 | else: | |
|
545 | var_cmd = functions.cmd_check(self) | |
|
546 | ||
|
547 | if self.var_real_show_cmd == True: | |
|
548 | self.txtInfo.append("CMD: "+var_cmd) | |
|
549 | ||
|
550 | if self.var_real_check == False: | |
|
537 | 551 | self.txtInfo.append('**function_check') |
|
538 | 552 | var_cmd="echo 'function_check'" |
|
539 | 553 | |
@@ -564,6 +578,10 | |||
|
564 | 578 | |
|
565 | 579 | def function_final(self): |
|
566 | 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