remove dead code

This commit is contained in:
Mylloon 2023-06-02 12:08:01 +02:00
parent 4fe5aeaf7f
commit 3f07d0dead
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -21,21 +21,9 @@ class GUI:
def start(self) -> None: def start(self) -> None:
"""Affiche la fenêtre""" """Affiche la fenêtre"""
self._main_screen() self._main_screen()
# self._change_pos(1280, 720)
self.parent.title(self.name) self.parent.title(self.name)
self.parent.mainloop() self.parent.mainloop()
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()
# Centre
x_i = (width // 2) - (x // 2)
y_i = (height // 2) - (y // 2)
self.parent.geometry(f"{x}x{y}+{x_i}+{y_i}")
def _open_file(self, start: int) -> None: def _open_file(self, start: int) -> None:
try: try:
chemin = askopenfile( chemin = askopenfile(