From f331b0da5cf221056181123e11fb50e5192b8cb9 Mon Sep 17 00:00:00 2001 From: pin Date: Mon, 8 Mar 2010 09:41:28 +0000 Subject: [PATCH 1/1] =?utf8?q?d=C3=A9placement=20m=C3=A9thode.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@74 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/app/widgets/cursors.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.20.1