[widgets] Pass through some information to the underlying module object
For determining status, critical/warning state, etc. simply let the widget pass through a call to the underlying object.
This commit is contained in:
parent
2f0cc30c38
commit
73d62d7ded
2 changed files with 8 additions and 12 deletions
|
@ -33,7 +33,7 @@ class Module(bumblebee.module.Module):
|
|||
|
||||
def widgets(self):
|
||||
return [
|
||||
bumblebee.output.Widget(
|
||||
bumblebee.output.Widget(self,
|
||||
datetime.datetime.now().strftime(self._fmt)
|
||||
)
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue