[GRASS-SVN] r72786 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 9 08:39:57 PDT 2018
Author: annakrat
Date: 2018-06-09 08:39:57 -0700 (Sat, 09 Jun 2018)
New Revision: 72786
Modified:
grass/trunk/gui/wxpython/gui_core/dialogs.py
grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI: replace deprecated checkbox event method, see #3570
Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py 2018-06-09 05:50:59 UTC (rev 72785)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py 2018-06-09 15:39:57 UTC (rev 72786)
@@ -917,7 +917,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
@@ -925,7 +925,7 @@
event.Skip()
def OnGSelAll(self, event):
- check = event.Checked()
+ check = event.IsChecked()
if not check:
self.gLayerBox.DeselectAll()
else:
Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py 2018-06-09 05:50:59 UTC (rev 72785)
+++ grass/trunk/gui/wxpython/gui_core/forms.py 2018-06-09 15:39:57 UTC (rev 72786)
@@ -2605,7 +2605,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