diff --git a/wxPython/demo/wxGrid_MegaExample.py b/wxPython/demo/wxGrid_MegaExample.py index 17007e58ec..028e96b4b3 100644 --- a/wxPython/demo/wxGrid_MegaExample.py +++ b/wxPython/demo/wxGrid_MegaExample.py @@ -32,8 +32,8 @@ class MegaTable(wxPyGridTableBase): def GetColLabelValue(self, col): return self.colnames[col] - def GetRowLabelValues(self, row): - return self.data[row][0] + def GetRowLabelValue(self, row): + return "row %03d" % int(self.data[row][0]) def GetValue(self, row, col): return str(self.data[row][1].get(self.GetColLabelValue(col), ""))