From dab722ccdf063b51d8e65f19f563880716cecfff Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 30 Nov 2021 22:13:40 +0100 Subject: [PATCH] reverse manager and disconnect button in cashier interface --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 0e7b6bc..2534403 100644 --- a/main.py +++ b/main.py @@ -579,11 +579,11 @@ class GesMag: Stats().exporteCSV(chemin.name, id) Button(self.f, text="Exporter les statistiques", font=self.font, command=__exportation).grid(column=0, row=2, sticky='e', padx=ecart) + Button(self.f, text="Se déconnecter", font=self.font, command=self._interfaceConnexion).grid(column=0, row=2, sticky='w', padx=ecart) + # -> Boutton pour passer en mode manager si la personne est un manager if caissier["metier"] == 0: - Button(self.f, text="Passer en mode Manager", font=self.font, command=lambda: self._interfaceManager(id)).grid(column=0, row=2, sticky='w', padx=ecart) - - Button(self.f, text="Se déconnecter", font=self.font, command=self._interfaceConnexion).grid(column=0, row=2) + Button(self.f, text="Passer en mode Manager", font=self.font, command=lambda: self._interfaceManager(id)).grid(column=0, row=2, sticky='w', padx=220) def _interfaceManager(self, id: int): """Affiche l'interface du manager."""