# HG changeset patch # User Björn Ricks # Date 1365752058 -7200 # Node ID a5c5675b6fa4c4357aef52ba7cfbf5165b3d3bbf # Parent 0190f1c30e3e02778bb5bd6e423afa946d323fd3 Give more "weight" to the description when displaying the project node entry With this change the project description will get more space in the row then the time. This avoids cutting long description texts even if the there is enough free space. With urwid 1.1 it would even better to user ("pack", time) for this. diff -r 0190f1c30e3e -r a5c5675b6fa4 getan/nodes.py --- a/getan/nodes.py Fri Apr 12 09:31:02 2013 +0200 +++ b/getan/nodes.py Fri Apr 12 09:34:18 2013 +0200 @@ -101,7 +101,8 @@ align="right") else: time = urwid.Text('') - return urwid.AttrMap(urwid.Columns([description, time]), None) + return urwid.AttrMap(urwid.Columns([("weight", 2, description), time], + dividechars=1), None) def _get_formatted_time(self): return human_time(self._get_time())