bumblebee-status/core/widget.py
Tobias Witek fca364554e [core/output] Add id of widget and module to output
In the process of that, fix a bug in how the parent class constructors
were invoked.
2020-02-08 13:45:52 +01:00

17 lines
473 B
Python

import core.input
import util.store
class Widget(util.store.Store, core.input.Object):
def __init__(self, full_text):
super(Widget, self).__init__()
self._full_text = full_text
def full_text(self, value=None):
if value:
self._full_text = value
else:
if callable(self._full_text):
return self._full_text()
return self._full_text
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4