2020-02-02 14:41:22 +01:00
|
|
|
# pylint: disable=C0111,R0903
|
|
|
|
|
2020-05-08 20:58:35 +02:00
|
|
|
"""Shows Linux kernel version information
|
|
|
|
|
|
|
|
contributed by `pierre87 <https://github.com/pierre87>`_ - many thanks!
|
|
|
|
"""
|
2020-02-02 14:41:22 +01:00
|
|
|
|
|
|
|
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
|