diff options
Diffstat (limited to 'ttystatus/integer.py')
-rw-r--r-- | ttystatus/integer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ttystatus/integer.py b/ttystatus/integer.py index 1b27126..7def9ff 100644 --- a/ttystatus/integer.py +++ b/ttystatus/integer.py @@ -25,7 +25,7 @@ class Integer(ttystatus.Widget): self._key = key self.value = None - def __str__(self): + def render(self): try: return str(int(self.value)) except (TypeError, ValueError): |