From ff76c03a5df77d8ad044da92da51dcfc2bb1c0a0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Jul 2014 11:24:37 +0200 Subject: cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/clock | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 examples/clock (limited to 'examples/clock') diff --git a/examples/clock b/examples/clock deleted file mode 100644 index 163f7d5..0000000 --- a/examples/clock +++ /dev/null @@ -1,27 +0,0 @@ -# -*- python -*- - -# A simple xpybar configuration example of a clock - -import time -import threading - -from plugins.clock import Clock - - -OUTPUT, HEIGHT, YPOS, TOP = 0, 12, 24, True - - -clock = Clock(format = '%Y-(%m)%b-%d %T, %a w%V, %Z', utc = False, sync_to = Clock.SECONDS) - - -start_ = start -def start(): - start_() - async(lambda : clock.continuous_sync(lambda : bar.invalidate())) - - -def redraw(): - text = clock.read() - bar.clear() - bar.draw_coloured_text(0, 10, 0, 2, text) - -- cgit v1.2.3-70-g09d2