Mercurial > libervia-backend
comparison frontends/src/primitivus/profile_manager.py @ 511:62f7f2403093
Primitivus: present contacts in groups chat can now be clicked
- updated GenericList/List signals to manage change/click fix in urwid-satext
- a click on a nick in a group chat create a private conversation with her, and select this conversation
/!\ history in backend doesn't manage correctly yet the private conversations /!\
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 16 Oct 2012 01:22:40 +0200 |
parents | 2a072735e459 |
children | ca13633d3b6b |
comparison
equal
deleted
inserted
replaced
510:886754295efe | 511:62f7f2403093 |
---|---|
34 | 34 |
35 #login & password box must be created before list because of onProfileChange | 35 #login & password box must be created before list because of onProfileChange |
36 self.login_wid = AdvancedEdit(_('Login:'),align='center') | 36 self.login_wid = AdvancedEdit(_('Login:'),align='center') |
37 self.pass_wid = Password(_('Password:'),align='center') | 37 self.pass_wid = Password(_('Password:'),align='center') |
38 | 38 |
39 self.list_profile = List(profiles, style=['single'], align='center', on_click=self.onProfileChange) | 39 self.list_profile = List(profiles, style=['single'], align='center', on_change=self.onProfileChange) |
40 | 40 |
41 #new & delete buttons | 41 #new & delete buttons |
42 buttons = [urwid.Button(_("New"), self.onNewProfile), | 42 buttons = [urwid.Button(_("New"), self.onNewProfile), |
43 urwid.Button(_("Delete"), self.onDeleteProfile)] | 43 urwid.Button(_("Delete"), self.onDeleteProfile)] |
44 buttons_flow = urwid.GridFlow(buttons, max([len(button.get_label()) for button in buttons])+4, 1, 1, 'center') | 44 buttons_flow = urwid.GridFlow(buttons, max([len(button.get_label()) for button in buttons])+4, 1, 1, 'center') |