[GRASS-SVN] r74440 - grass/trunk/gui/wxpython/vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 30 06:02:51 PDT 2019
Author: martinl
Date: 2019-04-30 06:02:51 -0700 (Tue, 30 Apr 2019)
New Revision: 74440
Modified:
grass/trunk/gui/wxpython/vdigit/dialogs.py
Log:
vdigit: fix dialog python3 issue, dict_keys is not indexable
Modified: grass/trunk/gui/wxpython/vdigit/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/dialogs.py 2019-04-30 12:02:19 UTC (rev 74439)
+++ grass/trunk/gui/wxpython/vdigit/dialogs.py 2019-04-30 13:02:51 UTC (rev 74440)
@@ -86,7 +86,7 @@
wx.LC_HRULES |
wx.LC_VRULES)
# sorter
- self.fid = self.cats.keys()[0]
+ self.fid = list(self.cats.keys())[0]
self.itemDataMap = self.list.Populate(self.cats[self.fid])
listmix.ColumnSorterMixin.__init__(self, 2)
self.fidMulti = wx.Choice(parent=self, id=wx.ID_ANY,
@@ -526,7 +526,7 @@
self.cats_orig = copy.deepcopy(self.cats)
# polulate list
- self.fid = self.cats.keys()[0]
+ self.fid = list(self.cats.keys())[0]
self.itemDataMap = self.list.Populate(self.cats[self.fid],
update=True)
More information about the grass-commit
mailing list