]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/stattext.py
Updated layout test
[wxWidgets.git] / wxPython / wx / lib / stattext.py
index c7cd5ff21ec1a4a305f2268bcc9a36cd83ff0107..ba49e318f8c8819e7919332d0b45f726080b0dd7 100644 (file)
@@ -113,7 +113,7 @@ class GenStaticText(wx.PyControl):
         backBrush = wx.Brush(clr, wx.SOLID)
         if wx.Platform == "__WXMAC__" and clr == self.defBackClr:
             # if colour is still the default then use the striped background on Mac
-            backBrush.SetMacTheme(1) # 1 == kThemeBrushDialogBackgroundActive
+            backBrush.MacSetTheme(1) # 1 == kThemeBrushDialogBackgroundActive
         dc.SetBackground(backBrush)
 
         dc.SetTextForeground(self.GetForegroundColour())
@@ -131,7 +131,7 @@ class GenStaticText(wx.PyControl):
                 x = width - w
             if style & wx.ALIGN_CENTER:
                 x = (width - w)/2
-            dc.DrawText(line, (x, y))
+            dc.DrawText(line, x, y)
             y += h