comparison frontends/src/primitivus/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 3b02554d4c8b
children a630b94280d5
comparison
equal deleted inserted replaced
637:3b02554d4c8b 638:6821fc06a324
68 render_txt.append(('my_nick' if self.my_mess else 'other_nick',"**" if self.my_mess else "*")) 68 render_txt.append(('my_nick' if self.my_mess else 'other_nick',"**" if self.my_mess else "*"))
69 else: 69 else:
70 render_txt.append(('my_nick' if self.my_mess else 'other_nick',"[%s] " % self.nick)) 70 render_txt.append(('my_nick' if self.my_mess else 'other_nick',"[%s] " % self.nick))
71 render_txt.append(self.message) 71 render_txt.append(self.message)
72 return urwid.Text(render_txt, align=self.align) 72 return urwid.Text(render_txt, align=self.align)
73
73 74
74 class Chat(urwid.WidgetWrap, QuickChat): 75 class Chat(urwid.WidgetWrap, QuickChat):
75 76
76 def __init__(self, target, host, type='one2one'): 77 def __init__(self, target, host, type='one2one'):
77 self.target = target 78 self.target = target