aboutsummaryrefslogtreecommitdiffstats
path: root/src/__main__.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-27 06:48:13 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-27 06:48:13 +0100
commit03fa5fe2e22c5733ed7cb81fbecf604e2f189908 (patch)
treee5f8890351c12aa08e35432991ecf6d1392f5d71 /src/__main__.py
parentstruct + doc (diff)
downloadxpybar-03fa5fe2e22c5733ed7cb81fbecf604e2f189908.tar.gz
xpybar-03fa5fe2e22c5733ed7cb81fbecf604e2f189908.tar.bz2
xpybar-03fa5fe2e22c5733ed7cb81fbecf604e2f189908.tar.xz
separate function for string drawing
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-xsrc/__main__.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/__main__.py b/src/__main__.py
index d1b5d66..5fee9f6 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -57,14 +57,7 @@ while True:
window.fill_rectangle(gc, 0, 0, width, panel_height)
gc.change(foreground = foreground)
gc.change(font = font)
- text_ = '°°° TEST °°° ꚺ░∈𝕐 '.encode('utf-16')[2:]
- text = []
- for i in range(len(text_)):
- if (i & 1) == 0:
- text.append(text_[i])
- else:
- text[-1] |= text_[i] << 8
- window.image_text_16(gc, 0, 10, text)
+ draw_text(window, gc, 0, 10, '°°° TEST °°°')
display.flush()
window.unmap()