Commits

Cédric Bonhomme  committed b4d2102

Protect the conversation zone from writing.

  • Participants
  • Parent commits d1e8a38

Comments (0)

Files changed (1)

File source/simpleGui.py

 
 
         """Widget Text avec une ScrollBar pour la discussion"""
-        self.conversation_zone = Text(self.master, **fieldParams)
+        self.conversation_zone = Text(self.master, state=DISABLED,**fieldParams)
         self.scrollbar = Scrollbar(self.master, orient = VERTICAL)
         self.scrollbar.config(command = self.conversation_zone.yview)
         self.scrollbar.grid(column = 3, row = 1, sticky = S + N)
         """
         Update the conversation zone with the message 'msg'.
         """
+        self.conversation_zone.config(state=NORMAL)
         self.conversation_zone.insert(END, msg)
+        self.conversation_zone.config(state=DISABLED)
 
     def load_rsa_keys(self):
         """