]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Sizers.py
I think I found out how GTK+ want popup windows
[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.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()