X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7403ad2d154a8e2974fdc5fc215258f3a75cdde..88e183d7693c5272673d109b21e40e1bb525a386:/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()