diff options
Diffstat (limited to 'ttystatus/index.py')
-rw-r--r-- | ttystatus/index.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ttystatus/index.py b/ttystatus/index.py index daa13df..3e73502 100644 --- a/ttystatus/index.py +++ b/ttystatus/index.py @@ -27,7 +27,7 @@ class Index(ttystatus.Widget): self.value = None self.listvalue = [] - def __str__(self): + def render(self): try: index = self.listvalue.index(self.value) + 1 except ValueError: |