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
This commit is contained in:
Robin Dunn
1999-06-22 15:46:03 +00:00
parent 64a9d1f9c3
commit 5662a243c7

View File

@@ -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."
),
]