From 1c1451871d147c999d64b291f6ca88f0ab6c4710 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 3 Mar 2014 23:49:09 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/moderate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') 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), -- cgit v1.2.3-70-g09d2