use dict syntax instead of exhausting syntax

This commit is contained in:
Mylloon 2021-11-20 00:57:56 +01:00
parent af44cc256c
commit 32fe113e0a

View file

@ -148,8 +148,8 @@ class GesMag:
def _interfaceManager(self, id: int):
"""Affiche l'interface du manager."""
manager = Utilisateurs().recuperationUtilisateur(id)[0]
self.parent.title(f"Manager {manager[3]} {manager[4]}")
manager = Utilisateurs().recuperationUtilisateur(id)
self.parent.title(f"Manager {manager['nom']} {manager['prenom']}")
self.dimensionsFenetre(1280, 720)
# Suppresssion de la dernière Frame