Aleksa
Aleksa

Reputation: 3104

wxgrid cell renderer set col size

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?

Upvotes: 2

Views: 2425

Answers (1)

Jack_of_All_Trades
Jack_of_All_Trades

Reputation: 11468

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.

Upvotes: 2

Related Questions