X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45cf74cccf416870b943e37ea8af482ffe2d7680..f5766910b6731eb03e82371416e9778203396ce7:/wxPython/demo/Sizers.py diff --git a/wxPython/demo/Sizers.py b/wxPython/demo/Sizers.py index e5f588468b..97db7945f7 100644 --- a/wxPython/demo/Sizers.py +++ b/wxPython/demo/Sizers.py @@ -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()