Mercurial > libervia-backend
comparison frontends/src/primitivus/status.py @ 1060:aa15453ec54d
core (xmpp), stdui (profile_manager), bridge, frontends: raise an exception if the XMPP connection failed instead of sending a signal
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 23 May 2014 09:59:35 +0200 |
parents | 255e6953b2c3 |
children | e2e1e27a3680 |
comparison
equal
deleted
inserted
replaced
1059:b2b9c184033f | 1060:aa15453ec54d |
---|---|
32 self.host = host | 32 self.host = host |
33 self.presence = sat_widgets.ClickableText('') | 33 self.presence = sat_widgets.ClickableText('') |
34 status_prefix = urwid.Text('[') | 34 status_prefix = urwid.Text('[') |
35 status_suffix = urwid.Text(']') | 35 status_suffix = urwid.Text(']') |
36 self.status = sat_widgets.ClickableText('') | 36 self.status = sat_widgets.ClickableText('') |
37 self.setPresenceStatus('', '') | 37 self.setPresenceStatus('unavailable', '') |
38 urwid.Columns.__init__(self, [('weight', 1, self.presence), ('weight', 1, status_prefix), | 38 urwid.Columns.__init__(self, [('weight', 1, self.presence), ('weight', 1, status_prefix), |
39 ('weight', 9, self.status), ('weight', 1, status_suffix)]) | 39 ('weight', 9, self.status), ('weight', 1, status_suffix)]) |
40 urwid.connect_signal(self.presence, 'click', self.onPresenceClick) | 40 urwid.connect_signal(self.presence, 'click', self.onPresenceClick) |
41 urwid.connect_signal(self.status, 'click', self.onStatusClick) | 41 urwid.connect_signal(self.status, 'click', self.onStatusClick) |
42 | 42 |