reverse manager and disconnect button in cashier interface
This commit is contained in:
parent
b9aec8085d
commit
dab722ccdf
1 changed files with 3 additions and 3 deletions
6
main.py
6
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."""
|
||||
|
|
Reference in a new issue