wxGrid and scrollbar

Hi.

I have written an application that gives me some reports of data
stored in a database. For some of these reports I use wxGrids and they
produce a different amount of data accordingly to some filters that
can be selected by the user.

At least on my Linux box I have an inconvenient behaviour of the
scrollbars being calculated and updated only on a resize of the
window. I haven't written anything and am using the standard wxGrid
code produced by wxGlade (it is generating Python code).

The question, then, is: how can I just enable the scrollbars
independently of how many items there are on the wxGrid and making
them being automatically updated without too much calculation?

TIA,

···

--
Godoy. <godoy@metalab.unc.edu>

Jorge Godoy <godoy@metalab.unc.edu> writes:

Hi.

I have written an application that gives me some reports of data
stored in a database. For some of these reports I use wxGrids and they
produce a different amount of data accordingly to some filters that
can be selected by the user.

At least on my Linux box I have an inconvenient behaviour of the
scrollbars being calculated and updated only on a resize of the
window. I haven't written anything and am using the standard wxGrid
code produced by wxGlade (it is generating Python code).

The question, then, is: how can I just enable the scrollbars
independently of how many items there are on the wxGrid and making
them being automatically updated without too much calculation?

Answering myself:

After updating the grid I can do a 'self.grid.FitInside()' and it will
solve the above problem. This information was hidden at the wxPython
wiki...

Thanks,

···

--
Godoy. <godoy@metalab.unc.edu>