wxGrid spacing/sizing

Hello everyone,

I am having an odd spacing issue with grids. They seem to display some extra whitespace at the bottom and on the right side. I assume the right side is because I am using wx.EXPAND, so that makes sense, but I can't get the bottom spacing to go away after hours of playing with it.

Run the attached sample (or any of the grids from the demo app) and scroll to the bottom, where you will see some extra whitespace. This is the space I want to remove; does anyone know how who could give me an example in my code?

And second, is there a way to specify a column as growable? Or even cooler, treat them like sizer items and give them proportions? For example, in the attached demo I want column B to take up the remaining horizontal space. Currently in my app I am catching sizing events, calculating the widths of all the other columns, subtracting this from the width of the panel, and setting that result as the width of the column that I want to expand. This is sort of buggy and results in a horizontal scrollbar about one third of the time. Is there a better way?

Thanks very much for your time,
Mike

gridspacedemo.py (725 Bytes)