From 86cbc8e5d859b8c1600a8d3c212daa36e22d4bb5 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Sat, 12 Feb 2011 08:16:34 +0100 Subject: [PATCH] cache: fix documentation showing MTLabel instead of Label --- kivy/cache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kivy/cache.py b/kivy/cache.py index ce89050c7..6e8b9098b 100644 --- a/kivy/cache.py +++ b/kivy/cache.py @@ -13,9 +13,9 @@ of 5 seconds:: Cache.register('mycache', limit=10, timeout=5) # create an object + id - label = 'objectid' - instance = MTLabel(label=label) - Cache.append('mycache', label, instance) + text = 'objectid' + instance = Label(text=text) + Cache.append('mycache', text, instance) # retrieve the cached object instance = Cache.get('mycache', label)