Alignment flags in Windows 7

The alignment flags of the sizers in Windows 7 don’t seem to work.
I copyed the attached example from Robin’s book, so it should be bug-free, but all windows added to the sizer behave the same, as if the alignment flags were absent. I couldn’t test the code in a different OS.
As for myself, I worked the problem around by adding some stretch spacer which, I suppose, is what the C++ code is doing under the hood.

11_3.py (681 Bytes)

Raffaello wrote:

The alignment flags of the sizers in Windows 7 don't seem to work.
I copyed the attached example from Robin's book, so it should be
bug-free, but all windows added to the sizer behave the same, as if the
alignment flags were absent. I couldn't test the code in a different OS.
As for myself, I worked the problem around by adding some stretch spacer
which, I suppose, is what the C++ code is doing under the hood.

Did you try resizing the frame to be larger than its initial size? It is when there is more than the needed space within a cell that the alignment flags will be applied to the item.

···

--
Robin Dunn
Software Craftsman