'Pyfips' via wxPython-users wrote:
>
> I thought, that self.AddGrowableCol(0, 1) would tell the sizer that
> the first column should grow in case it is too short (and not the
> third one).
Well, yes, but there's no reason to say that the first column is "too
short". The first column is, in fact, exactly large enough to contain
its contents, as are the second and third columns. That's the problem.
Having the spanned content doesn't trigger any changes to the individual
columns.
> What I try to achieve is to write a generic dialog, so that the user
> can write the UI without caring about sizers, border etc. The
> GridBagSizer seemed ideal to me but that behaviour makes it difficult
> to keep the solution generic.
Right. There's really no way to do a "generic" UI, because everyone has
a different idea of what the ideal layout is. That's why there are so
many different sizers.
> Is there alternatively a way how I can recalculate the column sizes of
> the sizer and set them manually? I could not find any in the help file.
Well, how would YOU, as a human being, decide what needed to be done
here? It's not at all obvious. You have an idea in your mind of how it
should look, but what algorithm would you use to induce the grid to
produce that?