X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d25a60983c46c1e260acb0b8ced4c4f9c0d520c7..71aba8333cc915afff9e740c944f7fa7247abacb:/wxPython/demo/wxListCtrl_virtual.py diff --git a/wxPython/demo/wxListCtrl_virtual.py b/wxPython/demo/wxListCtrl_virtual.py index f7489db1c8..c6af18cf2c 100644 --- a/wxPython/demo/wxListCtrl_virtual.py +++ b/wxPython/demo/wxListCtrl_virtual.py @@ -45,14 +45,15 @@ class TestVirtualList(wxListCtrl): def OnItemActivated(self, event): self.currentItem = event.m_itemIndex - self.log.WriteText("OnItemActivated: %s\n" % self.GetItemText(self.currentItem)) + self.log.WriteText("OnItemActivated: %s\nTopItem: %s\n" % + (self.GetItemText(self.currentItem), self.GetTopItem())) def getColumnText(self, index, col): item = self.GetItem(index, col) return item.GetText() def OnItemDeselected(self, evt): - print evt.m_itemIndex + self.log.WriteText("OnItemDeselected: %s" % evt.m_itemIndex) #---------------------------------------------------