Преглед изворни кода

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

Anna Petrasova пре 5 година
родитељ
комит
68a482bf97
1 измењених фајлова са 1 додато и 1 уклоњено
  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)