How to override PyGridTableBase.SetColLabelValue()?
fckuen at gmail.com
fckuen at gmail.com
Sun Jul 8 23:27:24 EDT 2007
Dear all,
the doc is missing, and
i failed to find the solution on google search.
anyone know how to override
the function SetColLabel() inside the class PyGridTableBase or the
class GridTableBase?
my code,
#===========================================
class MegaTable(wx.grid.PyGridTableBase):
def __init__(...)
.....
wx.grid.PyGridTableBase.__init__(self)
def SetColLabelValue(self, col, value):
value = self.coltags[col]
-->how to ???
class MegaGrid(wx.grid.Grid):
def __init__(...)
.....
wx.grid.Grid.__init__(self, parent, id)
self._table = MegaTable(self, .....)
self.SetTable(self._table)
.....
#===========================================
thanks!
More information about the Python-list
mailing list