Forráskód Böngészése

wxGUI: fix legend in d.mon (https://trac.osgeo.org/grass/ticket/3896)

Anna Petrasova 5 éve
szülő
commit
cdb2ad31bf
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      gui/wxpython/mapdisp/main.py

+ 4 - 1
gui/wxpython/mapdisp/main.py

@@ -350,7 +350,7 @@ class LayerList(object):
     def __iter__(self):
     def __iter__(self):
         return self
         return self
 
 
-    def next(self):
+    def __next__(self):
         items = self._map.GetListOfLayers()
         items = self._map.GetListOfLayers()
         try:
         try:
             result = items[self._index]
             result = items[self._index]
@@ -359,6 +359,9 @@ class LayerList(object):
         self._index += 1
         self._index += 1
         return result
         return result
 
 
+    def next(self):
+        return self.__next__()
+
     def GetSelectedLayers(self, checkedOnly=True):
     def GetSelectedLayers(self, checkedOnly=True):
         # hidden and selected vs checked and selected
         # hidden and selected vs checked and selected
         items = self._map.GetListOfLayers()
         items = self._map.GetListOfLayers()