X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45cf74cccf416870b943e37ea8af482ffe2d7680..f7204798e2b7db9e5ebd94c327ed0fef72b18862:/wxPython/demo/Sizers.py?ds=sidebyside 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()