diff options
Diffstat (limited to 'ttystatus/string.py')
-rw-r--r-- | ttystatus/string.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ttystatus/string.py b/ttystatus/string.py index 32a76ea..92fbf88 100644 --- a/ttystatus/string.py +++ b/ttystatus/string.py @@ -20,14 +20,15 @@ import ttystatus class String(ttystatus.Widget): '''Display a value as a string.''' + + static_width = False def __init__(self, key): self._key = key - self.interesting_keys = [key] self.value = '' - def format(self): + def render(self, render): return str(self.value) - def update(self, master, width): + def update(self, master): self.value = master[self._key] |