remove int cast and use correct operator
This commit is contained in:
parent
c6c571b022
commit
8dcb4755fb
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -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}")
|
||||
|
||||
|
|
Reference in a new issue