Bind event to the listctrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-05-04 21:47:00 +00:00
parent 28b2ac5b1a
commit 438550d873

View 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):