]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Sizers.py
Updated build files.
[wxWidgets.git] / wxPython / demo / Sizers.py
index eab72bede41b2c8024bb0afd5a8d89e3feda75ae..97db7945f735dfce1bac205d8a701cee2672155a 100644 (file)
@@ -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()