_
This commit is contained in:
parent
894ddf9153
commit
0c2abd9b32
1 changed files with 5 additions and 5 deletions
10
gui.py
10
gui.py
|
@ -16,11 +16,11 @@ class GUI:
|
|||
def start(self) -> None:
|
||||
"""Affiche la fenêtre"""
|
||||
self._main_screen()
|
||||
# self.change_pos(1280, 720)
|
||||
# self._change_pos(1280, 720)
|
||||
self.parent.title(self.name)
|
||||
self.parent.mainloop()
|
||||
|
||||
def change_pos(self, x: int, y: int) -> None:
|
||||
def _change_pos(self, x: int, y: int) -> None:
|
||||
"""Change les dimensions de la fenêtre"""
|
||||
width = self.parent.winfo_screenwidth()
|
||||
height = self.parent.winfo_screenheight()
|
||||
|
@ -31,7 +31,7 @@ class GUI:
|
|||
|
||||
self.parent.geometry(f"{x}x{y}+{x_i}+{y_i}")
|
||||
|
||||
def _open_file(self):
|
||||
def _open_file(self) -> None:
|
||||
try:
|
||||
chemin = askopenfile(
|
||||
title=f"Choisir un fichier - {self.name}",
|
||||
|
@ -49,7 +49,7 @@ class GUI:
|
|||
if chemin:
|
||||
return self._analyse(2, chemin.name)
|
||||
|
||||
def _open_directory(self):
|
||||
def _open_directory(self) -> None:
|
||||
try:
|
||||
chemin = askdirectory()
|
||||
except AttributeError:
|
||||
|
@ -58,7 +58,7 @@ class GUI:
|
|||
else:
|
||||
return self._analyse(2, chemin)
|
||||
|
||||
def _main_screen(self):
|
||||
def _main_screen(self) -> None:
|
||||
"""Écran principal"""
|
||||
Label(
|
||||
self.parent,
|
||||
|
|
Reference in a new issue