comparison frontends/src/wix/chat.py @ 638:6821fc06a324

misc: a few "cosmetic" changes (PEP 8...)
author souliane <souliane@mailoo.org>
date Thu, 05 Sep 2013 20:57:00 +0200
parents 84a6e83157c2
children f7878ad3c846
comparison
equal deleted inserted replaced
637:3b02554d4c8b 638:6821fc06a324
197 event.Veto() 197 event.Veto()
198 self.Hide() 198 self.Hide()
199 199
200 def onEnterPressed(self, event): 200 def onEnterPressed(self, event):
201 """Behaviour when enter pressed in send line.""" 201 """Behaviour when enter pressed in send line."""
202 self.host.sendMessage(self.target.short if self.type=='group' else self.target, 202 self.host.sendMessage(self.target.short if self.type == 'group' else self.target,
203 event.GetString(), 203 event.GetString(),
204 mess_type = "groupchat" if self.type=='group' else "chat", 204 mess_type="groupchat" if self.type == 'group' else "chat",
205 profile_key=self.host.profile) 205 profile_key=self.host.profile)
206 self.textBox.Clear() 206 self.textBox.Clear()
207 207
208 def __blink(self): 208 def __blink(self):
209 """Do wizzz and buzzz to show window to user or 209 """Do wizzz and buzzz to show window to user or
210 at least inform him of something new""" 210 at least inform him of something new"""