[modules/kernel] Make widget dynamic (update if kernel changes)
This commit is contained in:
parent
efc2e4f94e
commit
51faef9fd4
2 changed files with 9 additions and 6 deletions
|
@ -9,6 +9,9 @@ import core.widget
|
|||
|
||||
class Module(core.module.Module):
|
||||
def __init__(self, config=None):
|
||||
super().__init__(config, core.widget.Widget(platform.release()))
|
||||
super().__init__(config, core.widget.Widget(self.full_text))
|
||||
|
||||
def full_text(self, widgets):
|
||||
return platform.release()
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue