[wxPython] Is there a built-in mechanism available for collapsing events?

I'd like to be able to collapse events such that if 2 or more events of the
same ID are pending in the event queue for an object, then the earlier
events would be withdrawn. I can write this kludgily in Python, but I'm
wondering if there's any mechanism already existing?

I'm guessing the individual object event queues are already there, just not
sure if they have the ability to change semantics to do the collapsing. For
that matter, even being able to access them as a list and use standard
index, remove, etceteras methods would be quite usable, as I could write a
wrapper to do the collapsing semantics (and others could do their own
desired semantics as well, of course).

Thoughts appreciated,
Mike