git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28906
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Works with both single-select and multi-select lists."""
ctrl = event.GetEventObject()
Works with both single-select and multi-select lists."""
ctrl = event.GetEventObject()
- if isinstance(ctrl, wxListCtrl):
+ if isinstance(ctrl, wx.ListCtrl):
n, flags = ctrl.HitTest(event.GetPosition())
if n >= 0:
if not ctrl.GetItemState(n, wx.LIST_STATE_SELECTED):
n, flags = ctrl.HitTest(event.GetPosition())
if n >= 0:
if not ctrl.GetItemState(n, wx.LIST_STATE_SELECTED):