]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Sizers.py
wxCheckListBox doesn't require wxUSE_OWNER_DRAWN when using WXUNIVERSAL
[wxWidgets.git] / wxPython / demo / Sizers.py
index e5f588468bcf7b602bbc9e2ad6ae13bd52160099..eab72bede41b2c8024bb0afd5a8d89e3feda75ae 100644 (file)
@@ -43,7 +43,7 @@ class SampleWindow(wx.PyWindow):
         dc = wx.PaintDC(self)
         w,h = dc.GetTextExtent(self.text)
         dc.Clear()
         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()
 
     def OnSize(self, evt):
         self.Refresh()