浏览代码

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

Anna Petrasova 4 年之前
父节点
当前提交
e4ae35f3a8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_core/widgets.py

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

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