Mercurial > urwid-satext
diff urwid_satext/sat_widgets.py @ 144:bfab04d0a745
ListOption: add __hash__ method
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 27 Oct 2019 18:55:47 +0100 |
parents | 144bdf877d21 |
children | aa8f46b43a71 |
line wrap: on
line diff
--- a/urwid_satext/sat_widgets.py Tue Aug 13 08:55:41 2019 +0200 +++ b/urwid_satext/sat_widgets.py Sun Oct 27 18:55:47 2019 +0100 @@ -410,6 +410,9 @@ except AttributeError: return self._value != other + def __hash__(self): + return hash(self._value) + @property def value(self): """ return option value """