changeset 252:8be9c557e4b5

Show version number in getan header
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 11 Apr 2013 10:20:48 +0200
parents 6bafb0f3ee36
children fb412892efb5
files getan/view.py
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/getan/view.py	Thu Apr 11 10:20:33 2013 +0200
+++ b/getan/view.py	Thu Apr 11 10:20:48 2013 +0200
@@ -14,6 +14,8 @@
 import urwid
 import urwid.raw_display
 
+import getan
+
 from getan.nodes import ProjectNode, EntryNode
 from getan.resources import gettext as _
 from getan.utils import human_time
@@ -295,8 +297,12 @@
             urwid.Padding(self.proj_list, ('fixed left',0),('fixed right',1)),
             self.entr_list], 0)
 
-        self.header = urwid.AttrWrap(urwid.Text('%s\n' % _('.: getan :.')),
-                                       'header')
+        getan_header = urwid.AttrWrap(urwid.Text('%s' % _('.: getan :.')),
+                                      'header')
+        version_header = urwid.AttrWrap(urwid.Text("Version %s" % \
+                getan.__version__, align="right"), "header")
+
+        self.header = urwid.Columns([getan_header, version_header])
         self.footer = urwid.AttrWrap(urwid.Text(_('Choose a project:')),
                                        'question')
         self.col_list = self.columns.widget_list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)