use error name in info title

This commit is contained in:
Mylloon 2023-06-01 12:51:18 +02:00
parent 44bfb5b45e
commit cec096be3b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

8
gui.py
View file

@ -73,8 +73,8 @@ class GUI:
self.parent, text="Ouvrir un dossier", command=self._open_directory
).grid(column=1, row=1)
def _show_info(self, msg: str) -> None:
title = f"Contenu de l'avertissement - {self.name}"
def _show_info(self, name_err: str, msg: str) -> None:
title = f"{name_err} - {self.name}"
info = Toplevel()
info.resizable(False, False)
info.title(title)
@ -107,7 +107,9 @@ class GUI:
borderwidth=0,
justify="left",
anchor="w",
command=lambda: self._show_info(error.warning_content),
command=lambda: self._show_info(
error.warning_message, error.warning_content
),
).grid(column=0, row=idx)
idx += 1
else: