@@ -501,7 +501,7 | |||||
501 |
|
501 | |||
502 | def finished_manual_check(self): |
|
502 | def finished_manual_check(self): | |
503 | self.txtProgress.clear() |
|
503 | self.txtProgress.clear() | |
504 |
|
504 | |||
505 | if not(self.bool_state_manual_check): |
|
505 | if not(self.bool_state_manual_check): | |
506 | return |
|
506 | return | |
507 |
|
507 | |||
@@ -520,18 +520,15 | |||||
520 | bool_return = functions.remove_dir(var_tmpdata, self) |
|
520 | bool_return = functions.remove_dir(var_tmpdata, self) | |
521 | if not(bool_return): |
|
521 | if not(bool_return): | |
522 | self.txtInfo.append("Error deleting directory: "+var_tmpdata) |
|
522 | self.txtInfo.append("Error deleting directory: "+var_tmpdata) | |
523 |
self.bool_state_ |
|
523 | self.bool_state_manual_check = False | |
524 | return |
|
524 | return | |
525 |
|
525 | |||
526 |
|
||||
527 |
|
||||
528 | self.var_n_check_dirs +=1 |
|
526 | self.var_n_check_dirs +=1 | |
529 |
|
527 | |||
530 | if self.var_n_check_dirs >= len(self.list_check_dirs) : |
|
528 | if self.var_n_check_dirs >= len(self.list_check_dirs) : | |
531 | self.bool_state_manual_check = False |
|
529 | self.bool_state_manual_check = False | |
532 | self.function_manual_check_final() |
|
530 | self.function_manual_check_final() | |
533 | return |
|
531 | return | |
534 |
|
||||
535 |
|
532 | |||
536 | self.function_manual_check() |
|
533 | self.function_manual_check() | |
537 |
|
534 | |||
@@ -662,7 +659,10 | |||||
662 | if os.path.isfile("parameters.conf"): |
|
659 | if os.path.isfile("parameters.conf"): | |
663 | os.remove("parameters.conf") |
|
660 | os.remove("parameters.conf") | |
664 | if os.path.isfile("burning.conf"): |
|
661 | if os.path.isfile("burning.conf"): | |
665 |
os.remove("burning.conf") |
|
662 | os.remove("burning.conf") | |
|
663 | ||||
|
664 | functions2.eject_devices(self) # Expulsa las bandejas de los dispostivos de grabacion | |||
|
665 | ||||
666 |
|
666 | |||
667 |
|
667 | |||
668 |
|
668 | |||
@@ -714,6 +714,21 | |||||
714 | """ |
|
714 | """ | |
715 | Slot documentation goes here. |
|
715 | Slot documentation goes here. | |
716 | """ |
|
716 | """ | |
|
717 | ||||
|
718 | if self.btnCHstart.text() == "STOP": | |||
|
719 | self.btnCHstart.setText("START") #Cambio el texto del boton | |||
|
720 | self.bool_state_manual_check = False | |||
|
721 | self.process_manual_check.terminate() | |||
|
722 | ||||
|
723 | #borrar el contenido de tmpdata | |||
|
724 | var_tmpdata=self.var_TDpath+"/tmpdata" | |||
|
725 | bool_return = functions.remove_dir(var_tmpdata, self) | |||
|
726 | if not(bool_return): | |||
|
727 | self.txtInfo.append("Error deleting directory: "+var_tmpdata) | |||
|
728 | ||||
|
729 | return | |||
|
730 | ||||
|
731 | ||||
717 | list_dirs = functions2.mounted_devices() |
|
732 | list_dirs = functions2.mounted_devices() | |
718 | if list_dirs == "FATAL ERROR": |
|
733 | if list_dirs == "FATAL ERROR": | |
719 | self.txtInfo.append("ERROR") |
|
734 | self.txtInfo.append("ERROR") | |
@@ -728,7 +743,6 | |||||
728 |
|
743 | |||
729 | self.btnTDpath.setEnabled(False) #Deshabilito el boton que permite cambiar la ruta de verificacion |
|
744 | self.btnTDpath.setEnabled(False) #Deshabilito el boton que permite cambiar la ruta de verificacion | |
730 | self.btnCHstart.setText("STOP") #Cambio el texto del boton |
|
745 | self.btnCHstart.setText("STOP") #Cambio el texto del boton | |
731 | self.txtInfo.append(self.btnCHstart.text()) |
|
|||
732 |
|
746 | |||
733 | self.function_manual_check() |
|
747 | self.function_manual_check() | |
734 |
|
748 | |||
@@ -768,5 +782,5 | |||||
768 | def function_manual_check_final(self): |
|
782 | def function_manual_check_final(self): | |
769 | self.txtInfo.append("Manual check process is complete") |
|
783 | self.txtInfo.append("Manual check process is complete") | |
770 | self.btnCHstart.setText("START") #Cambio el texto del boton |
|
784 | self.btnCHstart.setText("START") #Cambio el texto del boton | |
771 |
|
785 | functions2.eject_devices_2(self) # Expulsa las bandejas de los dispostivos de grabacion | ||
772 |
|
786 |
General Comments 0
You need to be logged in to leave comments.
Login now