]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/mixins/listctrl.py
wxFile::Length() return type fix (replaces last check in)
[wxWidgets.git] / wxPython / wx / lib / mixins / listctrl.py
index fa9bd0291d555dcafaddc47c6483be3b80924cf8..77e49112de0f40f8e06c2a3c3d1a9dbbeaf1ef27 100644 (file)
@@ -262,7 +262,7 @@ def selectBeforePopup(event):
 
     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):