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