Hi,
wx.SplitterWindow allows to create a window splitted into 2. But how do I split a panel into 3 or 4 (or more) which will still have wx.SplitterWindow features?
Best Regards
Hi,
wx.SplitterWindow allows to create a window splitted into 2. But how do I split a panel into 3 or 4 (or more) which will still have wx.SplitterWindow features?
Best Regards
You don’t! Take a look at the demo.py - there is a FourWaySplitter.
Johnf
On Tue, Oct 11, 2016 at 2:08 AM, steve oslocourse@gmail.com wrote:
Hi,
wx.SplitterWindow allows to create a window splitted into 2. But how do I split a panel into 3 or 4 (or more) which will still have wx.SplitterWindow features?
Best Regards
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Forgot - look at multisash in the demo too.
On Tue, Oct 11, 2016 at 7:56 AM, John Fabiani fabiani.john@gmail.com wrote:
You don’t! Take a look at the demo.py - there is a FourWaySplitter.
Johnf
On Tue, Oct 11, 2016 at 2:08 AM, steve oslocourse@gmail.com wrote:
Hi,
wx.SplitterWindow allows to create a window splitted into 2. But how do I split a panel into 3 or 4 (or more) which will still have wx.SplitterWindow features?
Best Regards
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
also MultiSplitterWindow
On Tue, Oct 11, 2016 at 7:58 AM, John Fabiani fabiani.john@gmail.com wrote:
Forgot - look at multisash in the demo too.
On Tue, Oct 11, 2016 at 7:56 AM, John Fabiani fabiani.john@gmail.com wrote:
You don’t! Take a look at the demo.py - there is a FourWaySplitter.
Johnf
On Tue, Oct 11, 2016 at 2:08 AM, steve oslocourse@gmail.com wrote:
Hi,
wx.SplitterWindow allows to create a window splitted into 2. But how do I split a panel into 3 or 4 (or more) which will still have wx.SplitterWindow features?
Best Regards
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Actually yes. There is wx/lib/agw/FourWaySplitter.
I modified FourWaySplitter into a ThreeWaySplitter, so yes it takes some extra work and thought.
I just haven’t gotten around to releasing it yet.
On Tuesday, October 11, 2016 at 4:08:42 AM UTC-5, steve wrote:
Hi,
wx.SplitterWindow allows to create a window splitted into 2. But how do I split a panel into 3 or 4 (or more) which will still have wx.SplitterWindow features?
Best Regards
ThreeWaySplitter Screenie
You can combine multiple SplitterWindows.
Handling gravities and minimum sizes would be easier with a “real”
3-way splitter, though.
E.g. I’m using this for a 3-way splitter top/middle/bottom where
middle is again splitted into left/right.
# overall layout is done with some splitters
# top splitter: controls
h_splitter1 = wx.SplitterWindow(self)
h_splitter1.SetMinimumPaneSize(10)
h_splitter1.SetSashGravity(0.0)
# bottom splitter: files/results, grid
h_splitter2 = wx.SplitterWindow(h_splitter1,
style=wx.SP_3DSASH)
h_splitter2.SetMinimumPaneSize(20)
# vertical splitter: files / results
v_splitter1 = wx.SplitterWindow(h_splitter2,
style=wx.SP_3DSASH)
v_splitter1.SetMinimumPaneSize(1)
v_splitter1.SetSashGravity(0.5)
Regards,
Dietmar
On 11.10.2016 11:08, steve wrote:
wx.SplitterWindow allows to create a window
splitted into 2. But how do I split a panel into 3 ** or
4** (or more) which
will still have wx.SplitterWindow features?