Mercurial > libervia-backend
comparison frontends/wix/chat.py @ 67:0e50dd3a234a
message sending bug fixes + sortilege update
- sortilege now use default profile. /!\ sortilege is really buggy currently, need some attention
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 04 Feb 2010 01:06:36 +1100 |
parents | 8147b4f40809 |
children | 8f2ed279784b |
comparison
equal
deleted
inserted
replaced
66:8147b4f40809 | 67:0e50dd3a234a |
---|---|
54 #fonts | 54 #fonts |
55 self.font={} | 55 self.font={} |
56 self.font["points"] = self.chatWindow.GetFont().GetPointSize() | 56 self.font["points"] = self.chatWindow.GetFont().GetPointSize() |
57 self.font["family"] = self.chatWindow.GetFont().GetFamily() | 57 self.font["family"] = self.chatWindow.GetFont().GetFamily() |
58 | 58 |
59 self.historyPrint() | 59 self.historyPrint(profile=self.host.profile) |
60 | 60 |
61 #misc | 61 #misc |
62 self.textBox.SetFocus() | 62 self.textBox.SetFocus() |
63 self.Hide() #We hide because of the show toggle | 63 self.Hide() #We hide because of the show toggle |
64 | 64 |
85 ## TODO: check this and repport bug to wxpython devs | 85 ## TODO: check this and repport bug to wxpython devs |
86 self.Hide() | 86 self.Hide() |
87 | 87 |
88 def onEnterPressed(self, event): | 88 def onEnterPressed(self, event): |
89 """Behaviour when enter pressed in send line.""" | 89 """Behaviour when enter pressed in send line.""" |
90 self.host.bridge.sendMessage(self.to_jid, event.GetString()) | 90 self.host.bridge.sendMessage(self.to_jid, event.GetString(), profile_key=self.host.profile) |
91 self.textBox.Clear() | 91 self.textBox.Clear() |
92 | 92 |
93 | 93 |
94 | 94 |
95 def printMessage(self, from_jid, msg, profile, timestamp=""): | 95 def printMessage(self, from_jid, msg, profile, timestamp=""): |