I am trying to write a GUI in wxPython 2.8 (with Python 2.7), which includes creating multiple wx.StaticTexts in sizer. I want sizer to automatically add any additional elements to a new line if it detects that the width of the current line is wider than the width of the window.
Research tells me that it will be similar to Java FlowLayoutManager and wxWidgets, the project that wxPython is trying to connect to Python has it like wxWrapSizer. However, as far as I can tell, wxWrapSizer does not exist in wxPython. The documentation can be found here: http://docs.wxwidgets.org/trunk/classwx_wrap_sizer.html
Does wxPython support this?
Thank you for your help.
Note:
I cannot use wx.StaticText alone and call wx.StaticText.Wrap (width) because I need to track the elements separately. If this helps, pretend that instead of wx.StaticTexts these are images.
I have found the implementation presented at wxpython-users.com since 2006. I would prefer to use something built into wxPython, but in the worst case I can try.
http://wxpython-users.1045709.n5.nabble.com/Flow-Sizer-td2339182.html
source
share