X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..0b9d8fe18e02e9d848d205c3f36812cd56fc1bcd:/wxPython/demo/Sizers.py diff --git a/wxPython/demo/Sizers.py b/wxPython/demo/Sizers.py index ab95d06fd7..0fb4657edc 100644 --- a/wxPython/demo/Sizers.py +++ b/wxPython/demo/Sizers.py @@ -141,11 +141,11 @@ def makeBoxInBox(win): box.Add(wxButton(win, 1010, "one"), 0, wxEXPAND) box2 = wxBoxSizer(wxHORIZONTAL) - box2.AddMany([ (wxButton(win, 1010, "two"), 0, wxEXPAND), - (wxButton(win, 1010, "three"), 0, wxEXPAND), - (wxButton(win, 1010, "four"), 0, wxEXPAND), - (wxButton(win, 1010, "five"), 0, wxEXPAND), - ]) + box2.Add(wxButton(win, 1010, "two"), 0, wxEXPAND) + btn3 = wxButton(win, 1010, "three") + box2.Add(btn3, 0, wxEXPAND) + box2.Add(wxButton(win, 1010, "four"), 0, wxEXPAND) + box2.Add(wxButton(win, 1010, "five"), 0, wxEXPAND) box3 = wxBoxSizer(wxVERTICAL) box3.AddMany([ (wxButton(win, 1010, "six"), 0, wxEXPAND), @@ -159,6 +159,8 @@ def makeBoxInBox(win): box.Add(wxButton(win, 1010, "ten"), 0, wxEXPAND) + ##box.Hide(btn3) + return box #----------------------------------------------------------------------