4ad41a8ee0
Add - again a very simplistic - method for themeing the output. Essentially, the plan is to have JSON-formatted configuration files in bumblebee/themes/ and have a separate class for querying the config whenever the output needs to know about semantic formatting/coloring. Note that the theme object is stored on a per-module basis. Right now, that doesn't have any effect (except looking particularly wasteful), but the idea is to be able to have different themes for different modules in the future.
11 lines
288 B
Python
11 lines
288 B
Python
import datetime
|
|
import bumblebee.module
|
|
|
|
class Module(bumblebee.module.Module):
|
|
def __init__(self, theme):
|
|
super(Module, self).__init__(theme)
|
|
|
|
def data(self):
|
|
return datetime.datetime.now().strftime("%x %X")
|
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|