2b8a64f9cf01 — cedricbonhomme 11 years ago
Added a status bar to help the user.
1 files changed, 13 insertions(+), 1 deletions(-)

M source/simpleGui.py
M source/simpleGui.py +13 -1
@@ 123,12 123,20 @@ class SimpleGui(object):
         self.message_to_send.config(state = NORMAL, yscrollcommand = self.barreM)
         self.message_to_send.grid(row = 2, columnspan = 3)
 
+        # Send button
         self.send = Button(self.master, text = 'Send', command = self.send_message)
-        self.send.grid(row = 3, columnspan = 3)
+        self.send.grid(row = 3, columnspan = 3, pady = 5)
 
         # Create the right panel
         self.__create_right_panel()
 
+        # Status bar
+        self.status = Label(self.master, \
+                text = "You are not connected to the SPADE platform. " + \
+                "Connect to the platform via the File menu.", \
+                bd = 1, relief = SUNKEN, anchor = W)
+        self.status.grid(row = 4, columnspan = 5, sticky = W+E+N+S, pady = 5)
+
         # Load local RSA keys
         self.load_rsa_keys()
 

          
@@ 234,6 242,10 @@ class SimpleGui(object):
 
             self.master.title("pyChatter - " + self.user_name)
 
+            self.status.config(text = "Connected to the SPADE platform. " + \
+                                "Sign-in or just log yourself if you " + \
+                                "are already registered.")
+
         if self.client_agent != None:
             self.show_info('Already connected to the SPADE platform.')
             return