Floating sizer

Hi,

I'm looking for an implementation of a "floating sizer". The use case is
this: I have a bunch of buttons which I currently have in an horizontal
wxBoxSizer. However, if there are too many buttons, some are not shown
because the width is too small. I'd like those buttons to wrap around
("line-break") and show up in a second line of buttons.

I distantly remember that something like that was discussed in
wxpython-users before (or was it in wx-dev?) and there was even a
prototypical implementation, but a thorough web and mailing list search
didn't help.

Any help greatly appreciated.

Markus

Markus Meyer wrote:

Hi,

I'm looking for an implementation of a "floating sizer". The use case is
this: I have a bunch of buttons which I currently have in an horizontal
wxBoxSizer. However, if there are too many buttons, some are not shown
because the width is too small. I'd like those buttons to wrap around
("line-break") and show up in a second line of buttons.

I distantly remember that something like that was discussed in
wxpython-users before (or was it in wx-dev?) and there was even a
prototypical implementation, but a thorough web and mailing list search
didn't help.

Look for "FlowSizer" back in January.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!