summaryrefslogtreecommitdiff
path: root/ttystatus/counter.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-07-07 08:34:16 +1200
committerLars Wirzenius <liw@liw.fi>2010-07-07 08:34:16 +1200
commitb15fcce5b6d2046e3419b3201e38667554de53fd (patch)
treeafc2afd601ae8cadcb843e6d78761f81fa3fbfe5 /ttystatus/counter.py
parent56f628bb3d49a52c6e5ee1360b520c6381ebd510 (diff)
downloadpython-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.py1
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: