[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Events



>For some reason, pygame.event.clear() is not available to me. I thought it
>was because I was running pygame 1.5, so I upgraded to 1.5.3 (as confirmed
>with a pygame.ver) using the windows installer, but alas, no joy:
>
> >>> dir(pygame.event)
>['Event', 'EventType', '_PYGAME_C_API', '__doc__', '__file__', '__name__',
>'event_name', 'get', 'get_blocked', 'get_grab', 'peek', 'poll', 'post',
>'pump', 'set_allowed', 'set_blocked', 'set_grab', 'wait']
>
>Can someone tell me what I've missed?
>


Maybe what you want is

pygame.event.get()

which will get all of the events in the queue,
clearing it out in the process (you can just
throw the return value away if it is not needed.)

Looking through the documentation, I do not see any
pygame.event.clear() method mentioned at all.


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org