changeset 273:a5c5675b6fa4

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.
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 12 Apr 2013 09:34:18 +0200
parents 0190f1c30e3e
children 1477a5fbf0cd
files getan/nodes.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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())
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)