diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-03 23:49:09 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-03 23:49:40 +0100 |
commit | 1c1451871d147c999d64b291f6ca88f0ab6c4710 (patch) | |
tree | 1fbf596a8db78bdf0f6b85c0038c15ca4507690a /examples/moderate | |
parent | update todo (diff) | |
download | xpybar-1c1451871d147c999d64b291f6ca88f0ab6c4710.tar.gz xpybar-1c1451871d147c999d64b291f6ca88f0ab6c4710.tar.bz2 xpybar-1c1451871d147c999d64b291f6ca88f0ab6c4710.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples/moderate')
-rw-r--r-- | examples/moderate | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/moderate b/examples/moderate index 5a2cfab..3c14fe3 100644 --- a/examples/moderate +++ b/examples/moderate @@ -196,9 +196,11 @@ def chase(): solar_ = os.environ['HOME'] + '/.xpybar.sun' def sun(): try: - return Solar(solar_).output + return 'Sun: %s' % Solar(solar_).output except: return '¿Cannot get solar information?' + + functions = [ Sometimes(lambda : clock_.read(), 1 * 2), lambda : time.time() % 1, Sometimes(users, 1 * 2), |