diff options
author | pazz <patricktotzke@gmail.com> | 2011-05-29 20:17:27 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-05-29 20:17:27 +0100 |
commit | 55ed0b79f49020376d3e25b5c644c9e2ee6215d3 (patch) | |
tree | d26355f374d534840f73ce34e0fbc4df4f8b98e0 /alot/ui.py | |
parent | 73b8e1a0dfc0b4f1590669a27f6edefc9238b3f2 (diff) |
cleanup
Diffstat (limited to 'alot/ui.py')
-rw-r--r-- | alot/ui.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -14,7 +14,7 @@ class UI: self.logger = log self.dbman = db - self.logger.debug('setup gui: %d'%colourmode) + self.logger.debug('setup gui: %d' % colourmode) self.mainframe = urwid.Frame(urwid.SolidFill(' ')) self.mainloop = urwid.MainLoop(self.mainframe, settings.palette, @@ -114,7 +114,7 @@ class UI: self.update() def get_buffers_of_type(self, t): - return filter(lambda x: isinstance(x,t), self.buffers) + return filter(lambda x: isinstance(x, t), self.buffers) def update(self): """ @@ -133,7 +133,8 @@ class UI: def update_footer(self): idx = self.buffers.index(self.current_buffer) - lefttxt = '%d: %s' % (idx, self.current_buffer) + lefttxt = '%d: [%s] %s' % (idx, self.current_buffer.typename, + self.current_buffer) footerleft = urwid.Text(lefttxt, align='left') righttxt = 'total messages: %d' % self.dbman.count_messages('*') footerright = urwid.Text(righttxt, align='right') |