Update GUI-Accrochage.py

This commit is contained in:
jfontaine35
2024-01-11 14:34:21 +01:00
committed by GitHub
parent 419897dc27
commit cef239e811
+2 -2
View File
@@ -32,9 +32,9 @@ while True:
elif event == "Validation":
stdout, stderr = run_script('validation.py')
if not stderr:
window["-VALIDATION-RESULT-"].update("Fichier valide", text_color="lime")
window["-VALIDATION-RESULT-"].update("Fichier analysé, consulter le l'affichage...", text_color="lime")
else:
window["-VALIDATION-RESULT-"].update("Erreur de validation,consulter le l'affichage...", text_color="red")
window["-VALIDATION-RESULT-"].update("Erreur de validation, consulter le l'affichage...", text_color="red")
print(stdout if stdout else stderr)
elif event == sg.WIN_CLOSED or event == "Fermer":
break