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
|
|
|
|
2020-05-03 11:15:52 +02:00
|
|
|
|
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-04-26 16:39:24 +02:00
|
|
|
def __init__(self, config, theme):
|
|
|
|
super().__init__(config, theme, core.widget.Widget(self.full_text))
|
2020-03-06 14:31:08 +01:00
|
|
|
|
|
|
|
def full_text(self, widgets):
|
|
|
|
return platform.release()
|
2020-02-02 14:41:22 +01:00
|
|
|
|
2020-05-03 11:15:52 +02:00
|
|
|
|
2020-02-02 14:41:22 +01:00
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|