remove dead code
This commit is contained in:
parent
4fe5aeaf7f
commit
3f07d0dead
1 changed files with 0 additions and 12 deletions
12
src/gui.py
12
src/gui.py
|
@ -21,21 +21,9 @@ class GUI:
|
|||
def start(self) -> None:
|
||||
"""Affiche la fenêtre"""
|
||||
self._main_screen()
|
||||
# self._change_pos(1280, 720)
|
||||
self.parent.title(self.name)
|
||||
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:
|
||||
try:
|
||||
chemin = askopenfile(
|
||||
|
|
Reference in a new issue