2 way window splitter try

two_way_splitter_try.py (2.49 KB)

···

From my previous post I re-building everything to a 2 way splitter.


       >             >
       >             >

______| |
> >
> >
> >
______| ___ __ |

However, i can’t rid the left panel on the right vertical split. This is a mod of Mike’s splitter tutorial.


    vsplitter.SetMinimumPaneSize(20) # this line makes the vertical splitter bar unremovable
sizer = wx.BoxSizer(wx.VERTICAL) # this line effectively does nothing because of next line
sizer = wx.BoxSizer(wx.HORIZONTAL) # this line makes previous line meaningless
sizer.Add(hsplitter, 1, wx.EXPAND)
sizer.Add(vsplitter, 1, wx.EXPAND)

Do you want the left side of FRAME same size as right side of FRAME?
Do you want the horizontal “Pane” optionally take up the whole window and make the right “pane” get pushed off the frame?

Or

Do you want the left and right panes to change in width by using the vertical splitter bar where left and right panes are not equal size?

If so it seems you might want to make the horizontal splitter to be a child of the vertical splitter.

Try the attached. Uncomment the indicated lines if you wish.

twowaysplitter.py (1.18 KB)

I knew those lines where ineffective. Your sample made me realize, that each split needs a parent. TraceBack hint: windows in the splitter should have it as parent!

So now I have each panel in it’s own class. Thanks Dev.

···

On Friday, November 1, 2013 12:01:17 AM UTC-5, DevPlayer wrote:

Do you want the left side of FRAME same size as right side of FRAME?
Do you want the horizontal “Pane” optionally take up the whole window and make the right “pane” get pushed off the frame?

Or

Do you want the left and right panes to change in width by using the vertical splitter bar where left and right panes are not equal size?

If so it seems you might want to make the horizontal splitter to be a child of the vertical splitter.

Try the attached. Uncomment the indicated lines if you wish.

Sure