From 32fe113e0afe21ecf873cf4ef65831c8bd1b8233 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 20 Nov 2021 00:57:56 +0100 Subject: [PATCH] use dict syntax instead of exhausting syntax --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 9a360e6..4dd6c01 100644 --- a/main.py +++ b/main.py @@ -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