controls/CustomTable.py
branchpython3
changeset 3750 f62625418bff
parent 3303 0ffb41625592
child 3931 1c0263e2b3b1
--- a/controls/CustomTable.py	Mon Mar 27 10:19:14 2023 +0200
+++ b/controls/CustomTable.py	Fri Oct 28 12:39:15 2022 +0800
@@ -23,7 +23,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 
-from __future__ import absolute_import
+
 import wx
 import wx.grid
 
@@ -204,8 +204,8 @@
         if highlight_type is None:
             self.Highlights = {}
         else:
-            for _row, row_highlights in self.Highlights.iteritems():
-                row_items = row_highlights.items()
+            for _row, row_highlights in self.Highlights.items():
+                row_items = list(row_highlights.items())
                 for col, col_highlights in row_items:
                     if highlight_type in col_highlights:
                         col_highlights.remove(highlight_type)