From 8aef925efe26e6872f91d1aec7ef395b0e519067 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Thu, 28 May 2015 00:27:32 +0200 Subject: [PATCH] restricted mouse events to BUTTONUP --- photobooth.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/photobooth.py b/photobooth.py index bbcd401..3ad2001 100755 --- a/photobooth.py +++ b/photobooth.py @@ -135,12 +135,7 @@ class GUI_PyGame: # Handle the event if event.type == pygame.QUIT: return elif event.type == pygame.KEYDOWN: handle_keypress(event.key) - elif event.type == pygame.MOUSEBUTTONDOWN: - print("MOUSEBUTTONDOWN") - handle_mousebutton(event.button, event.pos) - elif event.type == pygame.MOUSEBUTTONUP: - print("MOUSEBUTTONUP") - handle_mousebutton(event.button, event.pos) + elif event.type == pygame.MOUSEBUTTONUP: handle_mousebutton(event.button, event.pos) # Ignore all input that happened inbetween pygame.event.clear()