wxgrid cell renderer set col size

2.3k Views Asked by At

I made a class whic extends PyGridCellRenderer and I can set size of columns with self.colSize = SOME_SIZE, but that sets same size for all columns, how can I set size for specific column?

1

There are 1 best solutions below

1
On

Try this:

SetCellSize(row, col, num_rows, num_cols);

Thissets the cell at the coordinates row, col to flow over num_rows rows and num_col columns.

If this is not what you want and want to work with pixel then:

SetColSize(col, width);
SetRowSize(row, height);

you can determine the current size of a row or column using :

GetColSize(col)
GetRowSize(row)

Let me know if it does not work.