]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Sizers.py
non-PCH build fix (according to Tinderbox).
[wxWidgets.git] / wxPython / demo / Sizers.py
index e5f588468bcf7b602bbc9e2ad6ae13bd52160099..97db7945f735dfce1bac205d8a701cee2672155a 100644 (file)
@@ -43,7 +43,7 @@ class SampleWindow(wx.PyWindow):
         dc = wx.PaintDC(self)
         w,h = dc.GetTextExtent(self.text)
         dc.Clear()
-        dc.DrawText(self.text, ((sz.width-w)/2, (sz.height-h)/2))
+        dc.DrawText(self.text, (sz.width-w)/2, (sz.height-h)/2)
 
     def OnSize(self, evt):
         self.Refresh()
@@ -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()