Use a better index

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-08-13 23:16:20 +00:00
parent 3b86714961
commit f0a0d77e35

View File

@@ -239,7 +239,7 @@ class KeyLog(wxListCtrl, wxListCtrlAutoWidthMixin):
else:
modifiers += '-'
id = self.InsertStringItem(0xffffff, evType)
id = self.InsertStringItem(self.GetItemCount(), evType)
self.SetStringItem(id, 1, keyname)
self.SetStringItem(id, 2, str(keycode))
self.SetStringItem(id, 3, modifiers)