From 438550d873035f651b04b05e8c207bd0f4e6be4e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 4 May 2005 21:47:00 +0000 Subject: [PATCH] Bind event to the listctrl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/mixins/listctrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/wx/lib/mixins/listctrl.py b/wxPython/wx/lib/mixins/listctrl.py index c370663960..2de4d3bbca 100644 --- a/wxPython/wx/lib/mixins/listctrl.py +++ b/wxPython/wx/lib/mixins/listctrl.py @@ -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): -- 2.45.2