소스 검색

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

Anna Petrasova 4 년 전
부모
커밋
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)