comparison frontends/wix/main_window.py @ 23:925ab466c5ec

better presentation for register new account - error message when no user, pass or server given - server is now automatically updated when jid change in connection category
author Goffi <goffi@goffi.org>
date Tue, 01 Dec 2009 06:07:20 +0100
parents bb72c29f3432
children 53e921c8a357
comparison
equal deleted inserted replaced
22:bb72c29f3432 23:925ab466c5ec
304 def actionResult(self, type, id, data): 304 def actionResult(self, type, id, data):
305 debug ("actionResult: type = [%s] id = [%s] data =[%s]" % (type, id, data)) 305 debug ("actionResult: type = [%s] id = [%s] data =[%s]" % (type, id, data))
306 if type == "SUPPRESS": 306 if type == "SUPPRESS":
307 self.current_action_ids.remove(id) 307 self.current_action_ids.remove(id)
308 elif type == "SUCCESS": 308 elif type == "SUCCESS":
309 self.current_action_ids.remove(id)
309 dlg = wx.MessageDialog(self, data["message"], 310 dlg = wx.MessageDialog(self, data["message"],
310 'Success', 311 'Success',
311 wx.OK | wx.ICON_INFORMATION 312 wx.OK | wx.ICON_INFORMATION
312 ) 313 )
313 dlg.ShowModal() 314 dlg.ShowModal()
314 dlg.Destroy() 315 dlg.Destroy()
315 elif type == "ERROR": 316 elif type == "ERROR":
317 self.current_action_ids.remove(id)
316 dlg = wx.MessageDialog(self, data["message"], 318 dlg = wx.MessageDialog(self, data["message"],
317 'Error', 319 'Error',
318 wx.OK | wx.ICON_ERROR 320 wx.OK | wx.ICON_ERROR
319 ) 321 )
320 dlg.ShowModal() 322 dlg.ShowModal()