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.send()
self.sendHelloButton['state'] = "disabled"
self.keyExchangeButton['state'] = "enable"
self.keyExchangeButton['state'] = "normal"
def keyExchange(self):
"""attend la clé publique du serveur
@ -42,8 +42,8 @@ class InterfaceClient(Interface):
if self.message.get() == "Finished":
print("Connection sécurisée établie ☺")
self.keyExchangeButton['state'] = "disabled"
self.sendButton['state'] = "enabled"
self.recvButton['state'] = "enabled"
self.sendButton['state'] = "normal"
self.recvButton['state'] = "normal"
def chiffre_RSA(self, msg, cle):
"""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.send()
self.waitForHelloButton['state'] = 'disabled'
self.finishedButton['state'] = 'enabled'
self.finishedButton['state'] = 'normal'
else:
print("HELLO n'a pas été reçu.")
@ -38,8 +38,8 @@ class InterfaceServeur(Interface):
self.entree.set("Finished")
self.send()
self.finishedButton['state'] = "disabled"
self.sendButton['state'] = "enabled"
self.recvButton['state'] = "enabled"
self.sendButton['state'] = "normal"
self.recvButton['state'] = "normal"
def dechiffre_RSA(self, msg):
"""déchiffre un message avec sa clé privée"""

Loading…
Cancel
Save