Mercurial > libervia-backend
comparison frontends/primitivus/profile_manager.py @ 173:ec6611445a5b
Primitivus: added Gateways support
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 12 Aug 2010 13:18:22 +0800 |
parents | 2240f34f6452 |
children | b4dfe15c0b25 |
comparison
equal
deleted
inserted
replaced
172:726786e914c3 | 173:ec6611445a5b |
---|---|
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 = urwid.Edit(_('Login:'),align='center') | 36 self.login_wid = urwid.Edit(_('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_click=self.onProfileChange) |
40 | |
41 #toto = urwid.Padding(urwid.Text('toto'), align='center') | |
42 | 40 |
43 #new & delete buttons | 41 #new & delete buttons |
44 buttons = [urwid.Button(_("New"), self.onNewProfile), | 42 buttons = [urwid.Button(_("New"), self.onNewProfile), |
45 urwid.Button(_("Delete"), self.onDeleteProfile)] | 43 urwid.Button(_("Delete"), self.onDeleteProfile)] |
46 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') |