b4d21028ed7d — cedricbonhomme 11 years ago
Protect the conversation zone from writing.
1 files changed, 3 insertions(+), 1 deletions(-)

M source/simpleGui.py
M source/simpleGui.py +3 -1
@@ 104,7 104,7 @@ class SimpleGui(object):
 
 
         """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)

          
@@ 501,7 501,9 @@ class SimpleGui(object):
         """
         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):
         """