write a word-wrap sizer

I want to write a sizer that wrap controls in a word-wrap style. e.g.:

sizer = WrapSizer()
sizer.Add(wx.StaticText(frame, -1, 'qwer'))
sizer.Add(wx.StaticText(frame, -1, 'asdf'))
sizer.Add(wx.StaticText(frame, -1, 'zxcv'))

will produce

  qwerasdfzxcv

if the frame is wide enough. If the frame is narrower, it places
controls as:

  qwerasdf
  zxcv

or

  qwer
  asdf
  zxcv

My questions are:

1. is it possible?
2. is there a similar sizer I can start with?
3. where can i find docs for writing wxPython sizers? (not C++)

···

--
Qiangning

After heavy googling I found what I want is a sizer just like the
FlowLayout in Java.

I think it is useful in some circumstance. Haven't anyone implemented
it ever? Even wxRuby has a FlowLayout!
(http://www.mktec.com/dev_www/wxrubylayouts/flowlayout.htm)

···

On 7/4/05, Qiangning Hong <hongqn@gmail.com> wrote:

I want to write a sizer that wrap controls in a word-wrap style. e.g.:

sizer = WrapSizer()
sizer.Add(wx.StaticText(frame, -1, 'qwer'))
sizer.Add(wx.StaticText(frame, -1, 'asdf'))
sizer.Add(wx.StaticText(frame, -1, 'zxcv'))

will produce

  qwerasdfzxcv

if the frame is wide enough. If the frame is narrower, it places
controls as:

  qwerasdf
  zxcv

or

  qwer
  asdf
  zxcv

My questions are:

1. is it possible?
2. is there a similar sizer I can start with?
3. where can i find docs for writing wxPython sizers? (not C++)

--
Qiangning Hong
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&amp;id=67907&amp;t=1&gt;