2017-03-03 19:13:30 +01:00
|
|
|
# pylint: disable=C0111,R0903
|
|
|
|
|
|
|
|
"""Shows Linux kernel version information"""
|
|
|
|
|
2017-03-03 19:18:25 +01:00
|
|
|
import platform
|
|
|
|
|
2017-03-03 16:01:59 +01:00
|
|
|
import bumblebee.input
|
|
|
|
import bumblebee.output
|
|
|
|
import bumblebee.engine
|
|
|
|
|
|
|
|
class Module(bumblebee.engine.Module):
|
|
|
|
def __init__(self, engine, config):
|
|
|
|
super(Module, self).__init__(engine, config,
|
|
|
|
bumblebee.output.Widget(full_text=self.output)
|
|
|
|
)
|
2017-03-03 19:18:25 +01:00
|
|
|
self._release_name = platform.release()
|
2017-03-03 16:01:59 +01:00
|
|
|
|
|
|
|
def output(self, widget):
|
|
|
|
return self._release_name
|
2017-03-03 19:13:30 +01:00
|
|
|
|
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|