nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit a98dab3c7673ca63c8958c38ed73e90682ca7d63
parent 1a2460b0f25e36c2451deb499a97d7ebe30084a4
Author: Eric Davis <edavis@insanum.com>
Date:   Sun, 13 Jul 2014 22:44:28 -0700

proper timeout and removal of log messages in the footer

Diffstat:
Msncli.py | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/sncli.py b/sncli.py @@ -132,6 +132,14 @@ def log_timeout(self, loop, arg): if self.log_alarms == 0: self.gui_footer_log_clear() self.logs = [] + else: + self.logs.pop(0) + + log_pile = [] + for l in self.logs: + log_pile.append(urwid.AttrMap(urwid.Text(l), 'log')) + + self.gui_footer_log_set(log_pile) self.log_lock.release()