]> git.saurik.com Git - wxWidgets.git/commitdiff
Finished a sample I forgot to do before...
authorRobin Dunn <robin@alldunn.com>
Tue, 22 Jun 1999 15:46:03 +0000 (15:46 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 22 Jun 1999 15:46:03 +0000 (15:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/wxPython/demo/Sizers.py

index 6ebdfcf8c4e861976ef7ec715345ce57fb167f6f..fcc99b96e0af614fc1072d4baff5dc0c872db56b 100644 (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."
      ),
 
     ]