From b0a3123973062597484f6bc64ad0900eddc21ba7 Mon Sep 17 00:00:00 2001 From: pin Date: Tue, 4 May 2010 09:23:35 +0000 Subject: [PATCH] =?utf8?q?bugfix=20:=20on=20ne=20loggait=20pas=20le=20bon?= =?utf8?q?=20=C3=A9tat.?= 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@161 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/app/event_pprinters.py | 2 +- src/app/widgets/column.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/event_pprinters.py b/src/app/event_pprinters.py index e399583..bc5834d 100755 --- a/src/app/event_pprinters.py +++ b/src/app/event_pprinters.py @@ -23,7 +23,7 @@ def log_COLSTATECHANGE(e): col = e.column tone = col.tone return u'%2d %5s %3s %3s %s' % \ - (col.index, col.state, tone.midi, tone.name, e.syllabus) + (col.index, e.state, tone.midi, tone.name, e.syllabus) def _log_col(e) : """ formate les événements de colonne COLDOWN, COLUP, COLOVER diff --git a/src/app/widgets/column.py b/src/app/widgets/column.py index d48dfde..bf1fb90 100755 --- a/src/app/widgets/column.py +++ b/src/app/widgets/column.py @@ -101,7 +101,7 @@ class Column(pygame.sprite.DirtySprite) : self.rect = self.rectOff self.state = state - self.dirty = 1 + self.dirty = 1 - evt = pygame.event.Event(events.COLSTATECHANGE, column=self, syllabus=syllabus) + evt = pygame.event.Event(events.COLSTATECHANGE, column=self, state=state, syllabus=syllabus) pygame.event.post(evt) -- 2.20.1