Mercurial > getan
changeset 64:94c2c3eeac9a
Use set_footer_text method to set the footer text instead of
calling the urwid function directly
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Wed, 25 May 2011 11:03:04 +0200 |
parents | 652149e7ef09 |
children | a7a85e85e0eb |
files | getan/view.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/getan/view.py Wed May 25 11:01:33 2011 +0200 +++ b/getan/view.py Wed May 25 11:03:04 2011 +0200 @@ -218,9 +218,9 @@ tmp = proj._get_time() if tmp and type(tmp) == int: total += tmp - self.frame.set_footer(urwid.AttrWrap( - urwid.Text(_(' All projects: %s %s') - % (proj.mode[1],human_time(total))), 'project_footer')) + self.set_footer_text(" All projects: %s %s" + % (proj.mode[1], human_time(total)), + "project_footer") def update(self): logger.debug("ProjectList: update focused project row now.")