Mercurial > libervia-backend
diff frontends/src/primitivus/profile_manager.py @ 1019:6a16ec17a458
better PEP-8 compliance
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 07 May 2014 15:44:31 +0200 |
parents | 73a0b7f94674 |
children | 5197600a1e13 |
line wrap: on
line diff
--- a/frontends/src/primitivus/profile_manager.py Thu May 08 19:11:47 2014 +0200 +++ b/frontends/src/primitivus/profile_manager.py Wed May 07 15:44:31 2014 +0200 @@ -19,7 +19,7 @@ from sat.core.i18n import _ import urwid -from urwid_satext.sat_widgets import AdvancedEdit,Password,List,InputDialog,ConfirmDialog,Alert +from urwid_satext.sat_widgets import AdvancedEdit, Password, List, InputDialog, ConfirmDialog, Alert from sat.tools.jid import JID @@ -32,8 +32,8 @@ profiles.sort() #login & password box must be created before list because of onProfileChange - self.login_wid = AdvancedEdit(_('Login:'),align='center') - self.pass_wid = Password(_('Password:'),align='center') + self.login_wid = AdvancedEdit(_('Login:'), align='center') + self.pass_wid = Password(_('Password:'), align='center') self.list_profile = List(profiles, style=['single'], align='center', on_change=self.onProfileChange) @@ -107,6 +107,7 @@ def setJID(jabberID): self.login_wid.set_edit_text(jabberID) self.host.redraw() + def setPassword(password): self.pass_wid.set_edit_text(password) self.host.redraw()