2020-01-26 13:58:29 +01:00
|
|
|
import util.store
|
|
|
|
|
|
|
|
class Widget(util.store.Store):
|
|
|
|
def __init__(self, full_text):
|
|
|
|
self._full_text = full_text
|
|
|
|
|
|
|
|
def full_text(self, value=None):
|
|
|
|
if value:
|
|
|
|
self._full_text = value
|
|
|
|
else:
|
|
|
|
if callable(self._full_text):
|
2020-02-04 21:09:11 +01:00
|
|
|
return self._full_text()
|
2020-02-07 21:32:20 +01:00
|
|
|
return self._full_text
|
2020-01-26 13:58:29 +01:00
|
|
|
|
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|