2f3f171ca5
Hide alias concept for modules in the engine. That way, the individual modules never get to know about whether a module has been aliased or not. see #23
17 lines
493 B
Python
17 lines
493 B
Python
import bumblebee.module
|
|
import bumblebee.util
|
|
|
|
def description():
|
|
return "Draws a widget with configurable content."
|
|
|
|
def parameters():
|
|
return [ "spacer.text: Text to draw (defaults to '')" ]
|
|
|
|
class Module(bumblebee.module.Module):
|
|
def __init__(self, output, config):
|
|
super(Module, self).__init__(output, config)
|
|
|
|
def widgets(self):
|
|
return bumblebee.output.Widget(self, self._config.parameter("text", ""))
|
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|