From b40d6b7fe2e7638650146745869a2eb887c30bd9 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Mon, 29 Oct 2012 02:20:43 +0100 Subject: [PATCH] bindtexture: fix usage of unicode filename in source attribute. closes #671 --- kivy/graphics/context_instructions.pxd | 2 +- kivy/graphics/context_instructions.pyx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kivy/graphics/context_instructions.pxd b/kivy/graphics/context_instructions.pxd index 189cd334f..2e3a0b3a9 100644 --- a/kivy/graphics/context_instructions.pxd +++ b/kivy/graphics/context_instructions.pxd @@ -14,7 +14,7 @@ cdef class Color(ContextInstruction): cdef class BindTexture(ContextInstruction): cdef int _index - cdef bytes _source + cdef object _source cdef Texture _texture cdef void apply(self) diff --git a/kivy/graphics/context_instructions.pyx b/kivy/graphics/context_instructions.pyx index 7b3482d82..0e758fc0f 100644 --- a/kivy/graphics/context_instructions.pyx +++ b/kivy/graphics/context_instructions.pyx @@ -285,9 +285,9 @@ cdef class BindTexture(ContextInstruction): ''' def __get__(self): return self._source - def __set__(self, bytes filename): + def __set__(self, filename): Logger.trace('BindTexture: setting source: <%s>' % filename) - self._source = resource_find(filename) + self._source = resource_find(filename) if self._source: tex = Cache.get('kv.texture', filename) if not tex: