Adding button to disconnect itself in cashier GUI

This commit is contained in:
Mylloon 2021-11-30 21:39:56 +01:00
parent 71ba3285c4
commit 37f4b91238

View file

@ -583,6 +583,7 @@ class GesMag:
if caissier["metier"] == 0: 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="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)
def _interfaceManager(self, id: int): def _interfaceManager(self, id: int):
"""Affiche l'interface du manager.""" """Affiche l'interface du manager."""