Retrieving the event queue

Is there any way to get the events in the event queue? I’m guessing it would have something to do with the EventQueue class but the documentation says nothing about how to get the list of the events queued up.

I need to do this cause I’m attempting to fork Castle Combat to use 3D for a school project. Castle Combat uses pygame and handles the event queue itself instead of leaving it to pygame. I think the main reason for this is the integration with Twisted.

Thanks.

arent queues just lists?
if they are you could just do:

for event in eventqueue:
    doseomthingwithevent(event)

Do you mean the Windows event queue? This has nothing to do with the EventQueue class, which manages events (e.g. messages, as received by accept()) passed from C++ into Python.

There’s no hook into the Windows event queue. But Panda will only monitor the events for its own window, so there shouldn’t be an issue there.

It’s possible to integrate Panda with another library that wants to take over the main loop. Search for the threads about integrating with wxPython, for instance.

David