X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7403ad2d154a8e2974fdc5fc215258f3a75cdde..d38f70b2494626c4c04dbec17b48d1029b7bcd10:/wxPython/demo/Sizers.py diff --git a/wxPython/demo/Sizers.py b/wxPython/demo/Sizers.py index eab72bede4..97db7945f7 100644 --- a/wxPython/demo/Sizers.py +++ b/wxPython/demo/Sizers.py @@ -532,9 +532,9 @@ class TestFrame(wx.Frame): self.sizer = sizerFunc(p) self.CreateStatusBar() self.SetStatusText("Resize this frame to see how the sizers respond...") - self.sizer.Fit(p) p.SetSizer(self.sizer) + self.sizer.Fit(p) self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) self.Fit()