From 5662a243c7a8c325f4456f5628a0f77f4002af7e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 22 Jun 1999 15:46:03 +0000 Subject: [PATCH 1/1] Finished a sample I forgot to do before... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/wxPython/demo/Sizers.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/utils/wxPython/demo/Sizers.py b/utils/wxPython/demo/Sizers.py index 6ebdfcf8c4..fcc99b96e0 100644 --- a/utils/wxPython/demo/Sizers.py +++ b/utils/wxPython/demo/Sizers.py @@ -152,7 +152,16 @@ def makeBoxInBorder(win): def makeBorderInBox(win): insideBox = wxBoxSizer(wxHORIZONTAL) - insideBox.Add(makeSimpleBox3(win), 1) + + box2 = wxBoxSizer(wxHORIZONTAL) + box2.AddMany([ (wxButton(win, 1010, "one"), 0), + (wxButton(win, 1010, "two"), 0), + (wxButton(win, 1010, "three"), 0), + (wxButton(win, 1010, "four"), 0), + (wxButton(win, 1010, "five"), 0), + ]) + + insideBox.Add(box2, 0) bdr = wxBorderSizer(wxALL) bdr.Add(wxButton(win, 1010, "border"), 20) @@ -163,7 +172,7 @@ def makeBorderInBox(win): (wxButton(win, 1010, "seven"), 2), (wxButton(win, 1010, "eight"), 1), (wxButton(win, 1010, "nine"), 1), - ]) + ]) insideBox.Add(box3, 1) outsideBox = wxBoxSizer(wxVERTICAL) @@ -238,7 +247,7 @@ theTests = [ ), ("Border in a Box", makeBorderInBox, - "" + "Another nesting example. This one has Boxes and a Border inside another Box." ), ] -- 2.45.2