I found that wx.ListCtrl.GetItemState() is weird!
wx.ListCtrl.GetItemState(i,wx.LIST_STATE_SELECTED) may return a 6 which is
wx.LIST_STATE_SELECTED & wx.LIST_STATE_FOCUSED. The mask doesn't work!
So, I have to do it this way:
if self.GetItemState(i,wx.LIST_STATE_SELECTED) & wx.LIST_STATE_SELECTED:
And IsSelected() is weird too!
If an item is focused but not selected(for example,you delete item 6,then the original item 7 is focused but not selected), IsSelected() return True.
Is this a bug? And I think GetItemState() should be put in the wxpy demo where I can only find SetItemState().
Bruce Who
HuXuZhao@hotmail\.com
2005\-02\-28