wx.TreeCtrl and SEL_CHANGED event

Hello,

I have a wx.TreeCtrl instance with a wx.TR_MULTIPLE style. I want to know which
nodes are currently selected. I have defined an event hadler for
wx.EVT_TREE_SEL_CHANGED in which I call GetSelections.
I was perfectly happy until I noticed, that when deselecting a node
while holding Ctrl the event is not always triggered.

I am running Windows XP, Python 2.4, wxPython 2.5.3.1 (unicode).

It can be demonstrated in the wxPython demo. When I uncomment the wx.TR_MULTIPLE
style flag and select several items while pressing Ctrl (so all stay selected)
and then deselect the LAST selected item (still pressing Ctrl),
nothing gets printed in the log window. When you deselect other then
the last selected item all goes fine (but in my application even this is somewhat
screwed). It is interesting that when you try it on leaf nodes, the icon changes, but the
event is not trriggered.

Is this an expected behaviour? Is there another way to be aware of
the selected items (automaticaly).

Thank you

Jirka Mikulasek