[wxPython-users] Resize of a grid in a collapsible pane
Robin Dunn
robin at alldunn.com
Mon Aug 20 16:16:40 PDT 2007
Dominique wrote:
> Hello,
>
> I have a collapsible pane which contains a grid (a pygridtablebase).
> When the grid data are updated, the size of the grid does not change.
> How to resize it according to the new data ?
I can't run your sample because of line wrapping problems (please attach
in the future instead of paste) but in general the sizer automatically
adjust to the grid's best size. Since the grid's best size is based on
col widths and row heights then either your user or you will need to
adjust the cols as needed to set them to the desired widths, and then a
layout should take care of the rest.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list