X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/21025650d4d91bd0e1848bf1a78208301180e604..ca8b7eef543b27ef0c8928494a6e138d0f938aa1:/src/app/widgets/cursors.py?ds=inline diff --git a/src/app/widgets/cursors.py b/src/app/widgets/cursors.py index db1ac56..041c0fb 100755 --- a/src/app/widgets/cursors.py +++ b/src/app/widgets/cursors.py @@ -60,16 +60,16 @@ class WarpingCursor(pygame.sprite.DirtySprite, EventHandlerMixin): self.blinkMode = blinkMode self._startBlink() - def _stopBlink(self) : - if self.blinkMode : - pygame.time.set_timer(TIMEOUT, 0) - def _startBlink(self) : if self.blinkMode : self._blinking = True pygame.time.set_timer(TIMEOUT, self.duration) self.iterator = self.iterImages() + def _stopBlink(self) : + if self.blinkMode : + pygame.time.set_timer(TIMEOUT, 0) + def iterImages(self) : for img in cycle(self.images) : yield img