Can't get wxGrid to work
prochak at netzero.net
Tue Nov 4 07:13:56 CET 2003
> self.gridPart2 = wxGrid(id=wxID_WXHAP2004GRIDPART2, name='gridPart2',
> parent=self.pnlPersInfo, pos=wxPoint(280, 104), size=wxSize(112,
> 176), style=wxSIMPLE_BORDER)
Don't forget to self.gridPar2.CreateGrid(rows,cols)
wxGrid isn't as dynamic or intuitive or whatever you want to call it.
You have to explicitly tell it how many rows and cols you have. Look
at AppendRows, AppendCols, DeleteRows, and DeleteCols. Dont try to
CreateGrid more than once.
Hope this helps,
More information about the Python-list