瀏覽代碼

wxGUI: replace deprecated checkbox event method, see https://trac.osgeo.org/grass/ticket/3570

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72786 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 7 年之前
父節點
當前提交
d6463e4f43
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      gui/wxpython/gui_core/dialogs.py
  2. 1 1
      gui/wxpython/gui_core/forms.py

+ 2 - 2
gui/wxpython/gui_core/dialogs.py

@@ -917,7 +917,7 @@ class GroupDialog(wx.Dialog):
         self._checkGSellAll()
 
     def OnSubgSelAll(self, event):
-        check = event.Checked()
+        check = event.IsChecked()
         for item in range(self.subgListBox.GetCount()):
             self.CheckSubgItem(item, check)
             self.dataChanged = True
@@ -925,7 +925,7 @@ class GroupDialog(wx.Dialog):
         event.Skip()
 
     def OnGSelAll(self, event):
-        check = event.Checked()
+        check = event.IsChecked()
         if not check:
             self.gLayerBox.DeselectAll()
         else:

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

@@ -2605,7 +2605,7 @@ class CmdPanel(wx.Panel):
             currentValues[isThere] = 1
         theValue = theParam['values'][myIndex]
 
-        if event.Checked():
+        if event.IsChecked():
             currentValues[theValue] = 1
         else:
             del currentValues[theValue]