controls/CustomTable.py
branchwxPython4
changeset 3303 0ffb41625592
parent 1881 091005ec69c4
child 3750 f62625418bff
--- a/controls/CustomTable.py	Thu Sep 02 21:36:29 2021 +0200
+++ b/controls/CustomTable.py	Thu Sep 02 22:18:14 2021 +0200
@@ -40,7 +40,7 @@
     """
     def __init__(self, parent, data, colnames):
         # The base class must be initialized *first*
-        wx.grid.PyGridTableBase.__init__(self)
+        wx.grid.GridTableBase.__init__(self)
         self.data = data
         self.colnames = colnames
         self.Highlights = {}
@@ -64,7 +64,7 @@
             return self.colnames[col]
 
     def GetRowLabelValue(self, row, translate=True):
-        return row
+        return str(row)
 
     def GetValue(self, row, col):
         if row < self.GetNumberRows():