image: fix bug when using anim_delay=-1. Closes #292

This commit is contained in:
Mathieu Virbel 2011-10-30 23:23:22 +01:00
parent 324a1fff0b
commit 529294bc87
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ The :class:`Image` widget is used to display an image. ::
Asynchronous loading Asynchronous loading
-------------------- --------------------
To load an image asynchronously (for example from an external webserver), use To load an image asynchronously (for example from an external webserver), use
the :class:`AsyncImage` subclass :: the :class:`AsyncImage` subclass ::
aimg = AsyncImage(source='http://mywebsite.com/logo.png') aimg = AsyncImage(source='http://mywebsite.com/logo.png')
@ -214,7 +214,7 @@ class Image(Widget):
return return
self._coreimage.anim_delay = value self._coreimage.anim_delay = value
if value < 0: if value < 0:
self.anim_reset(False) self._coreimage.anim_reset(False)
def on_texture(self, instance, value): def on_texture(self, instance, value):
if value is not None: if value is not None: