X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52ad59c2e9ec4237636cecd864961bcde35ca84b..c9468a241baaa09bbc82eb45da40a1d15c630f4d:/wxPython/demo/SplitTree.py?ds=inline diff --git a/wxPython/demo/SplitTree.py b/wxPython/demo/SplitTree.py index a7abb1ab9b..afdccb9e2e 100644 --- a/wxPython/demo/SplitTree.py +++ b/wxPython/demo/SplitTree.py @@ -65,7 +65,7 @@ class TestPanel(wxPanel): wxPanel.__init__(self, parent, -1) self.log = log - scroller = wxSplitterScrolledWindow(self, -1, (50,50), (350, 250), + scroller = wxSplitterScrolledWindow(self, -1, #(50,50), (350, 250), style=wxNO_BORDER | wxCLIP_CHILDREN | wxVSCROLL) splitter = wxThinSplitterWindow(scroller, -1, style=wxSP_3DBORDER | wxCLIP_CHILDREN) splitter.SetSashSize(2) @@ -83,6 +83,10 @@ class TestPanel(wxPanel): valueWindow.SetTreeCtrl(tree) tree.SetCompanionWindow(valueWindow) + sizer = wxBoxSizer(wxVERTICAL) + sizer.Add(scroller, 1, wxEXPAND|wxALL, 25) + self.SetAutoLayout(true) + self.SetSizer(sizer) #----------------------------------------------------------------------