def __init__(self, data, colLabels=None, rowLabels=None): wx.grid.GridTableBase.__init__(self) self.data = data # data is stored as a list of list self.rowLabels = rowLabels self.colLabels = colLabels