From ab00f753770c993ae8eb20f0a03e88451d97be15 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 13 Jan 2017 02:36:17 +0100 Subject: Work around bug in python-xlib, so new version of it can be used now that old versions cannot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__main__.py b/src/__main__.py index 6a296ec..7958804 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -154,7 +154,7 @@ class Bar: @param text:str The text @return :int The width of the text ''' - return self.font.query_text_extents(text).overall_width + return self.font.query_text_extents(text.encode('utf8')).overall_width def draw_text(self, x, y, descent, text, *, colour = None, clear = None): ''' -- cgit v1.2.3-70-g09d2