2020-02-02 14:41:22 +01:00
|
|
|
# pylint: disable=C0111,R0903
|
|
|
|
|
|
|
|
"""Shows Linux kernel version information"""
|
|
|
|
|
|
|
|
import platform
|
|
|
|
|
|
|
|
import core.module
|
|
|
|
import core.widget
|
2020-03-29 14:36:44 +02:00
|
|
|
import core.decorators
|
2020-02-02 14:41:22 +01:00
|
|
|
|
|
|
|
class Module(core.module.Module):
|
2020-03-29 14:36:44 +02:00
|
|
|
@core.decorators.every(minutes=60)
|
2020-03-29 14:35:20 +02:00
|
|
|
def __init__(self, config):
|
2020-03-06 14:31:08 +01:00
|
|
|
super().__init__(config, core.widget.Widget(self.full_text))
|
|
|
|
|
|
|
|
def full_text(self, widgets):
|
|
|
|
return platform.release()
|
2020-02-02 14:41:22 +01:00
|
|
|
|
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|