wxgrid - is there an easy way to set alignment of a column?

Ian Kelly ian.g.kelly at gmail.com
Fri Mar 15 11:50:41 EDT 2013


On Fri, Mar 15, 2013 at 5:50 AM,  <tinnews at isbd.co.uk> wrote:
> I'm using wxGrid and finding it fairly straightforward but I can't see
> an easy way to set the alignment (left, centre, right) for a whole
> column.
>
> There's SetDefaultCellAlignment() which sets the default for the whole
> grid and there's SetCellAlignment() which sets it for a specific cell
> but there seems to be no way to set the default alignment for a column.
>
> Am I missing something or do I need to do it for individual cells as I
> load the data?

You can use SetColAttr() to set attributes over a whole column.



More information about the Python-list mailing list