Mercurial > libervia-backend
diff frontends/primitivus/progress.py @ 222:3198bfd66daa
primitivus: refactoring to use urwid-satext which is now a separate project
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 28 Dec 2010 23:10:13 +0100 |
parents | fdb961f27ae9 |
children |
line wrap: on
line diff
--- a/frontends/primitivus/progress.py Mon Dec 27 21:56:12 2010 +0100 +++ b/frontends/primitivus/progress.py Tue Dec 28 23:10:13 2010 +0100 @@ -20,7 +20,7 @@ """ import urwid -import custom_widgets +from urwid_satext import sat_widgets from tools.jid import JID @@ -32,10 +32,10 @@ self.progress_dict = {} listbox = urwid.ListBox(self.progress_list) buttons = [] - buttons.append(custom_widgets.CustomButton(_('Clear progress list'), self.__onClear)) + buttons.append(sat_widgets.CustomButton(_('Clear progress list'), self.__onClear)) max_len = max([button.getSize() for button in buttons]) buttons_wid = urwid.GridFlow(buttons,max_len,1,0,'center') - main_wid = custom_widgets.FocusFrame(listbox, footer=buttons_wid) + main_wid = sat_widgets.FocusFrame(listbox, footer=buttons_wid) urwid.WidgetWrap.__init__(self, main_wid) def addProgress(self, id, message):