event firing

Hello,

is there a way to find out what event spawned another event?

For example, in wx.TreeCtrl, if you right click on an
element in the tree, it fires a wx.EVT_TREE_SEL_CHANGING event before the wx.EVT_RIGHT_DOWN
event gets fired. I don’t want the selection changing event to fire in
this case but I do want it to fire in all other cases. I was thinking that if
I could know what event fired the selection changing event, then I could put
code in the beginning of the selection changing handler to stop it from firing
if the previous event was a right mouse click. I guess I’m looking for
an event handler history. Does this exist and if so, how do I access it.

Any help appreciated

Rob