From 67eff066257f0006e604dac59898e0e6e7cf57b0 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 8 Sep 2014 17:54:54 +0000 Subject: [PATCH] Display version in help dialog title It's nice to be able to tell what version you're running from within the application itself, and the help dialog seems as good a place to display it as any. Add it to the previously very short dialog title line so as not to take up additional lines in the display. Change-Id: Ie1ae713c4aeff5ae7136f1d5796f095f54db60aa --- gertty/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gertty/app.py b/gertty/app.py index cf46181..7231d44 100644 --- a/gertty/app.py +++ b/gertty/app.py @@ -261,7 +261,7 @@ class App(object): for keys, cmdtext in items: text += '{keys:{width}} {text}\n'.format( keys=keys, width=keylen, text=cmdtext) - dialog = mywid.MessageDialog('Help', text) + dialog = mywid.MessageDialog('Help for %s' % version(), text) lines = text.split('\n') urwid.connect_signal(dialog, 'close', lambda button: self.backScreen())