]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-14/grid_headers.py
4 class TestFrame(wx
.Frame
):
6 rowLabels
= ["uno", "dos", "tres", "quatro", "cinco"]
7 colLabels
= ["homer", "marge", "bart", "lisa", "maggie"]
10 wx
.Frame
.__init
__(self
, None, title
="Grid Headers",
12 grid
= wx
.grid
.Grid(self
)
15 grid
.SetRowLabelValue(row
, self
.rowLabels
[row
])
16 grid
.SetColLabelValue(row
, self
.colLabels
[row
])
18 grid
.SetCellValue(row
, col
,
19 "(%s,%s)" % (self
.rowLabels
[row
], self
.colLabels
[col
]))
21 app
= wx
.PySimpleApp()