[GRASS-SVN] r72855 - grass/branches/releasebranch_7_4/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 17 12:51:21 PDT 2018


Author: annakrat
Date: 2018-06-17 12:51:21 -0700 (Sun, 17 Jun 2018)
New Revision: 72855

Modified:
   grass/branches/releasebranch_7_4/gui/wxpython/gui_core/dialogs.py
   grass/branches/releasebranch_7_4/gui/wxpython/gui_core/forms.py
Log:
wxGUI: replace deprecated checkbox event method (merge from trunk, see #3151)

Modified: grass/branches/releasebranch_7_4/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/gui_core/dialogs.py	2018-06-17 19:49:39 UTC (rev 72854)
+++ grass/branches/releasebranch_7_4/gui/wxpython/gui_core/dialogs.py	2018-06-17 19:51:21 UTC (rev 72855)
@@ -916,7 +916,7 @@
         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
@@ -924,7 +924,7 @@
         event.Skip()
 
     def OnGSelAll(self, event):
-        check = event.Checked()
+        check = event.IsChecked()
         if not check:
             self.gLayerBox.DeselectAll()
         else:

Modified: grass/branches/releasebranch_7_4/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/gui_core/forms.py	2018-06-17 19:49:39 UTC (rev 72854)
+++ grass/branches/releasebranch_7_4/gui/wxpython/gui_core/forms.py	2018-06-17 19:51:21 UTC (rev 72855)
@@ -2606,7 +2606,7 @@
             currentValues[isThere] = 1
         theValue = theParam['values'][myIndex]
 
-        if event.Checked():
+        if event.IsChecked():
             currentValues[theValue] = 1
         else:
             del currentValues[theValue]



More information about the grass-commit mailing list