Browse Source

enabled -> normal

master
corentin.bollet 6 months ago
parent
commit
4b6595405c
  1. 6
      InterfaceClient.py
  2. 6
      InterfaceServeur.py

6
InterfaceClient.py

@ -19,7 +19,7 @@ class InterfaceClient(Interface):
self.entree.set("HELLO") self.entree.set("HELLO")
self.send() self.send()
self.sendHelloButton['state'] = "disabled" self.sendHelloButton['state'] = "disabled"
self.keyExchangeButton['state'] = "enable" self.keyExchangeButton['state'] = "normal"
def keyExchange(self): def keyExchange(self):
"""attend la clé publique du serveur """attend la clé publique du serveur
@ -42,8 +42,8 @@ class InterfaceClient(Interface):
if self.message.get() == "Finished": if self.message.get() == "Finished":
print("Connection sécurisée établie ☺") print("Connection sécurisée établie ☺")
self.keyExchangeButton['state'] = "disabled" self.keyExchangeButton['state'] = "disabled"
self.sendButton['state'] = "enabled" self.sendButton['state'] = "normal"
self.recvButton['state'] = "enabled" self.recvButton['state'] = "normal"
def chiffre_RSA(self, msg, cle): def chiffre_RSA(self, msg, cle):
"""chiffre un message avec une clé publique""" """chiffre un message avec une clé publique"""

6
InterfaceServeur.py

@ -24,7 +24,7 @@ class InterfaceServeur(Interface):
self.entree.set(str(self.e)+";"+str(self.n)) self.entree.set(str(self.e)+";"+str(self.n))
self.send() self.send()
self.waitForHelloButton['state'] = 'disabled' self.waitForHelloButton['state'] = 'disabled'
self.finishedButton['state'] = 'enabled' self.finishedButton['state'] = 'normal'
else: else:
print("HELLO n'a pas été reçu.") print("HELLO n'a pas été reçu.")
@ -38,8 +38,8 @@ class InterfaceServeur(Interface):
self.entree.set("Finished") self.entree.set("Finished")
self.send() self.send()
self.finishedButton['state'] = "disabled" self.finishedButton['state'] = "disabled"
self.sendButton['state'] = "enabled" self.sendButton['state'] = "normal"
self.recvButton['state'] = "enabled" self.recvButton['state'] = "normal"
def dechiffre_RSA(self, msg): def dechiffre_RSA(self, msg):
"""déchiffre un message avec sa clé privée""" """déchiffre un message avec sa clé privée"""

Loading…
Cancel
Save