From af1c84d6ace73e51562a999a353ae98fc7a87e10 Mon Sep 17 00:00:00 2001 From: qua-non Date: Wed, 24 Apr 2013 01:56:28 +0530 Subject: [PATCH] uix: label. Make sure texture exists before binding --- kivy/uix/label.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kivy/uix/label.py b/kivy/uix/label.py index 71ea659ea..15f9be3f5 100644 --- a/kivy/uix/label.py +++ b/kivy/uix/label.py @@ -191,7 +191,8 @@ class Label(Widget): text, '[/color]')) self._label.refresh() # force the rendering to get the references - self._label.texture.bind() + if self._label.texture: + self._label.texture.bind() self._label.text = text self.refs = self._label.refs self.anchors = self._label.anchors