remove int cast and use correct operator

This commit is contained in:
Mylloon 2021-11-19 10:40:45 +01:00
parent c6c571b022
commit 8dcb4755fb

View file

@ -8,8 +8,8 @@ def dimensionsFenetre(fenetre, taille: tuple):
largeur = fenetre.winfo_screenwidth()
hauteur = fenetre.winfo_screenheight()
x = int(largeur / 2 - taille[0] / 2)
y = int(hauteur / 2 - taille[1] / 2)
x = (largeur // 2) - (taille[0] // 2)
y = (hauteur // 2) - (taille[1] // 2)
fenetre.geometry(f"{taille[0]}x{taille[1]}+{x}+{y}")