primitivus: refactoring to use urwid-satext which is now a separate project
This commit is contained in:
parent
2c9364addf
commit
c8b5f1db90
1 changed files with 63 additions and 1317 deletions
|
|
@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
"""
|
||||
|
||||
import urwid
|
||||
import custom_widgets
|
||||
from urwid_satext import sat_widgets
|
||||
from tools.jid import JID
|
||||
|
||||
|
||||
|
|
@ -32,10 +32,10 @@ class Progress(urwid.WidgetWrap):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue