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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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