use error name in info title
This commit is contained in:
parent
44bfb5b45e
commit
cec096be3b
1 changed files with 5 additions and 3 deletions
8
gui.py
8
gui.py
|
@ -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:
|
||||
|
|
Reference in a new issue