]> git.saurik.com Git - wxWidgets.git/commitdiff
Use a better index
authorRobin Dunn <robin@alldunn.com>
Tue, 13 Aug 2002 23:16:20 +0000 (23:16 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 13 Aug 2002 23:16:20 +0000 (23:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/wxKeyEvents.py

index 4811892fe856499d13428f25c82d5a06b07ad534..7c603f17ab76b73fd105876f209c58205777f06f 100644 (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)