浏览代码

wxGUI/mapswipe: fix wx.CheckListBox widget wxPyDeprecationWarning (#773)

Tomas Zigo 4 年之前
父节点
当前提交
0c1e710884
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_core/simplelmgr.py

+ 1 - 1
gui/wxpython/gui_core/simplelmgr.py

@@ -177,7 +177,7 @@ class SimpleLayerManager(wx.Panel):
 
     def OnLayerChecked(self, event):
         """Layer was (un)checked, update layer's info."""
-        checkedIdxs = self._checkList.GetChecked()
+        checkedIdxs = self._checkList.GetCheckedItems()
         for i, layer in enumerate(self._layerList):
             if i in checkedIdxs and not layer.IsActive():
                 layer.Activate()