Demo tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-11-13 05:04:46 +00:00
parent 26b756a164
commit f6238d1f84
4 changed files with 30 additions and 19 deletions

View File

@@ -213,10 +213,11 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
# this does
self.list.SetItemState(10, 0, wxLIST_STATE_SELECTED)
# Show how to reselect something we don't want deselected
def OnItemDeselected(self, evt):
item = evt.GetItem()
print evt.m_itemIndex
self.log.WriteText("OnItemDeselected: %d" % evt.m_itemIndex)
# Show how to reselect something we don't want deselected
if evt.m_itemIndex == 11:
wxCallAfter(self.list.SetItemState, 11, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED)