diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-07-07 08:34:16 +1200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-07-07 08:34:16 +1200 |
commit | b15fcce5b6d2046e3419b3201e38667554de53fd (patch) | |
tree | afc2afd601ae8cadcb843e6d78761f81fa3fbfe5 /ttystatus/counter.py | |
parent | 56f628bb3d49a52c6e5ee1360b520c6381ebd510 (diff) | |
download | python-ttystatus-b15fcce5b6d2046e3419b3201e38667554de53fd.tar.gz |
Speed things up by only updating widgets interested in the updated value.
Diffstat (limited to 'ttystatus/counter.py')
-rw-r--r-- | ttystatus/counter.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ttystatus/counter.py b/ttystatus/counter.py index b409114..a401d8d 100644 --- a/ttystatus/counter.py +++ b/ttystatus/counter.py @@ -26,6 +26,7 @@ class Counter(ttystatus.Widget): self.prev = None self.count = 0 self.value = '0' + self.interesting_keys = set([name]) def update(self, master, width): if master[self.name] != self.prev: |