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
This commit is contained in:
Jeremy Stanley 2014-09-08 17:54:54 +00:00
parent 91e5fa465d
commit 67eff06625
1 changed files with 1 additions and 1 deletions

View File

@ -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())