[core/output] Add widget drawing

Add basic drawing of widgets. Each module instance returns a list of
widgets using the widgets() method which is then forwarded to the draw()
method of the configured output.

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-04 12:53:18 +01:00
parent 6f52825ef0
commit 712d958e18
5 changed files with 41 additions and 1 deletions

10
tests/util.py Normal file
View file

@ -0,0 +1,10 @@
# pylint: disable=C0103,C0111
class MockWidget(object):
def __init__(self, text):
self._text = text
def text(self):
return self._text
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4