diff options
Diffstat (limited to 'ttystatus/counter.py')
-rw-r--r-- | ttystatus/counter.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ttystatus/counter.py b/ttystatus/counter.py index ae61fa0..d37ed90 100644 --- a/ttystatus/counter.py +++ b/ttystatus/counter.py @@ -21,12 +21,14 @@ class Counter(ttystatus.Widget): '''Display a count of how many times a value has changed.''' + static_width = False + def __init__(self, name): self.name = name self.prev = None self.count = 0 - def render(self): + def render(self, width): return str(self.count) def update(self, master): |