至于wx.lib.sheet.CSheet
类 extends wx.grid.Grid
,有SetColLabelValue
方法:
column_names = ['Name', 'Surname', 'Age', 'DOB']
sheet = CSheet(panel)
for index, name in enumerate(column_names):
sheet.SetColLabelValue(index, name)
sizer.Add(sheet)
SetRowLabelValue
用于行。