wx.SplitterWindow in a notebook sizing problem

Paul Melis paul at science.uva.nl
Wed Mar 5 08:23:53 PST 2008


Hi,
I have a notebook with two pages, where the second page is a splitter =

window. The window is split horizontally and contains a Panel at the top =

and a wx.TextCtrl at the bottom. No matter what value I pass to =

SplitHorizontally() the initial split position is making the top pane =

the minimum size. Even the default split position of 0 does not result =

in a half/half split. Are there some other steps I have to follow to =

make the split where I want?

See the attached file for a minimal sample showing the problem. This is =

with wxGTK 2.8.7.1and GTK 2.6.10.

Regards,
Paul

PS The splitter window example in the "official" demo collection shows a =

similar problem. Even though the splitting is done with a split position =

of -100 in the code (which should make the right pane a 100 pixels wide =

according to the docs), the left pane is sized to the minimum pane size =

and the right pane is a few hundred pixels wide.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.py
Type: text/x-python
Size: 1005 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20080=
305/dd28de1d/t.py


More information about the wxpython-users mailing list