wxListCtrl --> wx.ListCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -262,7 +262,7 @@ def selectBeforePopup(event):
|
|||||||
|
|
||||||
Works with both single-select and multi-select lists."""
|
Works with both single-select and multi-select lists."""
|
||||||
ctrl = event.GetEventObject()
|
ctrl = event.GetEventObject()
|
||||||
if isinstance(ctrl, wxListCtrl):
|
if isinstance(ctrl, wx.ListCtrl):
|
||||||
n, flags = ctrl.HitTest(event.GetPosition())
|
n, flags = ctrl.HitTest(event.GetPosition())
|
||||||
if n >= 0:
|
if n >= 0:
|
||||||
if not ctrl.GetItemState(n, wx.LIST_STATE_SELECTED):
|
if not ctrl.GetItemState(n, wx.LIST_STATE_SELECTED):
|
||||||
|
Reference in New Issue
Block a user