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
|
self.parent, text="Ouvrir un dossier", command=self._open_directory
|
||||||
).grid(column=1, row=1)
|
).grid(column=1, row=1)
|
||||||
|
|
||||||
def _show_info(self, msg: str) -> None:
|
def _show_info(self, name_err: str, msg: str) -> None:
|
||||||
title = f"Contenu de l'avertissement - {self.name}"
|
title = f"{name_err} - {self.name}"
|
||||||
info = Toplevel()
|
info = Toplevel()
|
||||||
info.resizable(False, False)
|
info.resizable(False, False)
|
||||||
info.title(title)
|
info.title(title)
|
||||||
|
@ -107,7 +107,9 @@ class GUI:
|
||||||
borderwidth=0,
|
borderwidth=0,
|
||||||
justify="left",
|
justify="left",
|
||||||
anchor="w",
|
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)
|
).grid(column=0, row=idx)
|
||||||
idx += 1
|
idx += 1
|
||||||
else:
|
else:
|
||||||
|
|
Reference in a new issue