diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-07-02 11:24:37 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-07-02 11:24:37 +0200 |
commit | ff76c03a5df77d8ad044da92da51dcfc2bb1c0a0 (patch) | |
tree | 184fc4de51028ee07637d72b9c136342d07307ad /examples/clock | |
parent | update dist (diff) | |
download | xpybar-ff76c03a5df77d8ad044da92da51dcfc2bb1c0a0.tar.gz xpybar-ff76c03a5df77d8ad044da92da51dcfc2bb1c0a0.tar.bz2 xpybar-ff76c03a5df77d8ad044da92da51dcfc2bb1c0a0.tar.xz |
cleanup
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples/clock')
-rw-r--r-- | examples/clock | 27 |
1 files changed, 0 insertions, 27 deletions
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) - |