[Pychord-commits] r60 - trunk/pychord2
danilo at garage.maemo.org
danilo at garage.maemo.org
Wed Mar 19 20:54:13 EET 2008
Author: danilo
Date: 2008-03-19 20:54:10 +0200 (Wed, 19 Mar 2008)
New Revision: 60
Modified:
trunk/pychord2/window_show.py
Log:
- Clear event.list after/before slow procedures
Modified: trunk/pychord2/window_show.py
===================================================================
--- trunk/pychord2/window_show.py 2008-03-17 14:36:34 UTC (rev 59)
+++ trunk/pychord2/window_show.py 2008-03-19 18:54:10 UTC (rev 60)
@@ -8,6 +8,7 @@
from pygame.locals import *
+import pygame
@@ -17,6 +18,8 @@
def __init__(self, screen, pyc, SongCod):
window.__init__(self, None, screen )
+ pygame.event.clear()
+
self.setBackground((0,0,0))
# Geting the chords
@@ -56,6 +59,8 @@
self.addElement(btRR)
+ pygame.event.clear()
+
def onKeyPress(self, key):
if key == K_F7:
More information about the Pychord-commits
mailing list