]> git.saurik.com Git - wxWidgets.git/commitdiff
Bind event to the listctrl
authorRobin Dunn <robin@alldunn.com>
Wed, 4 May 2005 21:47:00 +0000 (21:47 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 4 May 2005 21:47:00 +0000 (21:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/mixins/listctrl.py

index c370663960b551c15910098f24a9402ab09ab12b..2de4d3bbca64a9bdb3e51ca7f197f20f679677b5 100644 (file)
@@ -62,7 +62,7 @@ class ColumnSorterMixin:
         list = self.GetListCtrl()
         if not list:
             raise ValueError, "No wx.ListCtrl available"
-        self.Bind(wx.EVT_LIST_COL_CLICK, self.__OnColClick, list)
+        list.Bind(wx.EVT_LIST_COL_CLICK, self.__OnColClick, list)
 
 
     def SetColumnCount(self, newNumColumns):