Explorar o código

wxGUI/nviz: SetMaskColour causes problems on macos with wx 4.1.0 (#787)

Anna Petrasova %!s(int64=4) %!d(string=hai) anos
pai
achega
68a482bf97
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/gui_core/widgets.py

+ 1 - 1
gui/wxpython/gui_core/widgets.py

@@ -497,7 +497,7 @@ class SymbolButton(BitmapTextButton):
         elif usage == 'pause':
             self.DrawPause(dc, size)
 
-        if sys.platform != "win32":
+        if sys.platform not in ("win32", "darwin"):
             buffer.SetMaskColour(maskColor)
         self.SetBitmapLabel(buffer)
         dc.SelectObject(wx.NullBitmap)