best splitting option

I’m trying to get wxSplitterWindow to set the position of the sash
and it is not doing it. This was mentioned in 2002 as a bug:

http://www.nabble.com/-wxPython–Problem-with-SetSashPosition-on-a-wxSplitterWindow-td17893155.html

I haven’t done much panel splitting layouts, so before I spend
more struggle, is SplitterWindow the most “modern” and
recommendable control for this? I ask because there are
several splitters and sash controls in the demo.

Thanks,
Che

C M wrote:

I'm trying to get wxSplitterWindow to set the position of the sash
and it is not doing it. This was mentioned in 2002 as a bug:

http://www.nabble.com/-wxPython--Problem-with-SetSashPosition-on-a-wxSplitterWindow-td17893155.html

I wrote 2-3 weeks ago about why the splitter sometimes doesn't start out with the sash where you expect it to be, and how it is trying to work around that problem. In a nutshell, if there is a size event before the final initial size is reached then the workaround can fail.

I haven't done much panel splitting layouts, so before I spend
more struggle, is SplitterWindow the most "modern" and
recommendable control for this? I ask because there are
several splitters and sash controls in the demo.

Some of them address special needs, or are part of something bigger (like AUI) but if you only need a single split then I would go with wx.SplitterWindow since it is the most used and therefore probably the most tested. For more than one split then MultiSplitterWindow or FourWaySplitter work well.

···

--
Robin Dunn
Software Craftsman