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:
parent
91e5fa465d
commit
67eff06625
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user